tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <has...@webtuitive.com>
Subject Re: Tomcat rookie needs help building application
Date Sun, 20 Mar 2005 16:09:29 GMT
Barry Kimelman wrote:

> So I changed my current directory to the 
> toplevel of my project and issued the command "ant compile". I received 
> the following error message :
>  
>      BUILD FAILED
>      C:\barry\myproject\build.xml:146: taskdef class 
> org.apache.cataline.ant.DeployTask cannot be found
>  
> Line 146 of my build.xml file is as follows :
>   <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
>  
> I searched the JAR files under my Tomcat installation and found that the 
> JAR file located at C:\Tomcat5.5\server\lib\catalina-ant.jar conatins the 
 > "missing" class.
>  
> According to the Tomcat documentation that I read, JAR files placed 
> under $CATALINA_HOME/common/lib are available both to web applications 
 > and internal Tomcat code.

But you're neither of those :-) so it's *your* CLASSPATH that needs
to include "C:\Tomcat5.5\server\lib\catalina-ant.jar" when you run
ant from the command line.

-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message