Solved

Ant problem

Posted on 2006-10-24
5
326 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
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
shinobun earned 375 total points
Comment Utility
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
Comment Utility
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 125 total points
Comment Utility
> 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 375 total points
Comment Utility
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
Comment Utility
Thank u all,

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…

743 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

8 Experts available now in Live!

Get 1:1 Help Now