We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Ant problem

matthew016
matthew016 asked
on
Medium Priority
390 Views
Last Modified: 2008-01-16
When I try to execute my Ant file I have the following problem,
related to Tomcat

*********************************************************

Buildfile: D:\Informatique\Projets\LeHall\WorkSpace LeHall\LeHallWeb\build.xml

BUILD FAILED
D:\Informatique\Projets\LeHall\WorkSpace LeHall\LeHallWeb\build.xml:9: taskdef class org.apache.catalina.ant.StopTask cannot be found

Total time: 234 milliseconds

*********************************************************

I added catalina-ant.jar in the lib of my ant directory, so I don't understand the error,

Can someone help ?

Thx.
Comment
Watch Question

Commented:
What do you have on line 9 of your build.xml?

What do you get when you run "ant -debug"?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
I have this

      <taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />

I don't run Ant on command line but from Eclipse
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
> I don't run Ant on command line but from Eclipse

i think eclipse uses its own versiuon of ant
Commented:
Go from your menu to Window > Preferences
Go to Ant > Runtime
In the Classpath pane, add catalina-ant.jar

Author

Commented:
Thank u all,

I ran it in the command line with debug and I could see my errors
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.