?
Solved

Ant problem

Posted on 2006-10-24
5
Medium Priority
?
339 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.
0
Comment
Question by:matthew016
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
shinobun earned 1500 total points
ID: 17798750
What do you have on line 9 of your build.xml?

What do you get when you run "ant -debug"?
0
 
LVL 9

Author Comment

by:matthew016
ID: 17798807
I have this

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

I don't run Ant on command line but from Eclipse
0
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
ID: 17799580
> I don't run Ant on command line but from Eclipse

i think eclipse uses its own versiuon of ant
0
 
LVL 9

Assisted Solution

by:shinobun
shinobun earned 1500 total points
ID: 17800747
Go from your menu to Window > Preferences
Go to Ant > Runtime
In the Classpath pane, add catalina-ant.jar
0
 
LVL 9

Author Comment

by:matthew016
ID: 17801646
Thank u all,

I ran it in the command line with debug and I could see my errors
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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.
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 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