Solved

problem creating helloWorld web service

Posted on 2003-11-21
6
519 Views
Last Modified: 2011-10-03
Hello,

I've downloaded the JWS tutorial from the sun site (jwsdp-1_3-tutorial.zip).
I've unzipped it to a local directory.

I've installed Ant (v.1.5.4)

I've gone to the directory which contains the build.xml in the samples directory, and here's what I get:

---------------------------------------------
D:\download\j2ee\jwstutorial13\examples\jaxrpc\helloservice>ant build
Buildfile: build.xml

BUILD FAILED
file:D:/download/j2ee/jwstutorial13/examples/jaxrpc/common/targets.xml:30: taskdef class org.apache.catalina.ant.DeployTask cannot be found

Total time: 3 seconds

---------------------------------------------

I don't have Tomcat installed.  Do I need this, if so, can I just use the version that's bundled with JBoss v3.2.2?

Thanks for any help,
TimB
0
Comment
Question by:TimB
  • 3
  • 2
6 Comments
 
LVL 35

Assisted Solution

by:girionis
girionis earned 25 total points
ID: 9796117
 It can't find the DeployTask class. I guess the ant.jar file is already in the classpath. Can you make sure that you do not have an older/newer version of the ant (just check if there are two or more ants installed). It is probably a classpath conflict.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9796124
Make sure Ant is in your classpath.

>>Do I need this

Can't give you an authorative answer on this, but i'd think almost certainly you do (or another server)

>>can I just use the version that's bundled with JBoss v3.2.2?

Possibly, although you'll have to be careful that the JBoss configuration has not, because of its interceptors, effectively hobbled its normal operation.

Sorry not to be more definite. I'm sure someone else will be able to be, although that should give you a start.
0
 
LVL 35

Accepted Solution

by:
TimYates earned 25 total points
ID: 9796131
You need the catalina-ant jar file...

Not sure if it's in the JBoss bundle...

have a look... :-)

Tim
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 86

Expert Comment

by:CEHJ
ID: 9796170
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9796277
Off topic, but thought you might like to put your oar in here Tim ;-)

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20803113.html
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9796322
:-)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now