Solved

problem creating helloWorld web service

Posted on 2003-11-21
6
522 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JAVA part two 5 58
java 8 lambda expresssions exception handling 3 75
what is a "java.lang.System Property"   ? 20 57
how do i compare an object based on two fields 6 49
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

867 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

17 Experts available now in Live!

Get 1:1 Help Now