You need to make sure that servlet.jar is in your classpath for Ant. This is done in your build.xml file. For my project, I have my classpath pull everything in my webapp's WEB-INF/lib directory and then I put other jars that are included in my application server (i.e. - Tomcat) in the WEB-INF/cp directory and include that in my Ant classpath as well. That way Tomcat's bundled servlet.jar will play nice with the servlet.jar you need for Ant.
BTW, you should probably put [OT] in the subject of an email like this because this is really more of an Ant problem than a Struts problem.
Matt
Rick Roberts wrote:
I am new to the list so go easy on me :)
I searched the archives but did not find the answer to this but I am almost certain that it has been asked here a Bejillion times already.
I have tomcat 4.24 on Redhat running with no problems.
I can run the struts blank.war starter application with no problems.
I have $TOMCAT_HOME/common/lib/ in my CLASSPATH I even have $TOMCAT_HOME/common/lib/servlet.jar in my CLASSPATH
I am trying to work thru some examples and when I get to the part where I need to get ANT to build the project, ANT gives me this error:
package javax.servlet does not exist
Any suggestions?
Thanks,
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]