Solved

problem creating helloWorld web service

Posted on 2003-11-21
6
529 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

How our DevOps Teams Maximize Uptime

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

Question has a verified solution.

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

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

828 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