I need help building my 1st Tomcat application.
 
My system is a Windows XP PC. My version of Tomcat is 5.5.8.
I have tomcat installed under the directory    C:\Tomcat5.5
 
I have verified that the installation of Tomcat was successfull by visiting http://localhost:8080.
Once at the test page, I also ran some of the JSP examples to verify that everything was working correctly.
 
My problem is that I can't build an application successfully. I have searched the Tomcat documentation and several mailing list archives, but I have not found any documentation that states, "This is how to build a Tomcat application". I have organized my source code as described/recommended in the Tomcat documentation.
I did have some success with Tomcat 5.0.16 under Linux Redhat9 a year ago, and as I recall, you compiled your application from the command line using the "Ant" utility. 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. So I copied the JAR file under that directory and once again attempted to build my project/application. However, I received the same error message
 
What do I need to do in order to build/compile my Tomcat5 project ? Is there a "How to build a Tomcat5 Project" document ?
 
Please help a confused rookie.
 
*************************
 
Barry Kimelman
Toronto, Ontario, Canada
email :  [EMAIL PROTECTED] , [EMAIL PROTECTED]

Reply via email to