ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Abson" <>
Subject taskdef class org.apache.jasper.JspC cannot be found
Date Mon, 01 Sep 2003 12:24:13 GMT

I'm trying to construct an Ant build file to precompile some JSPs in a webapp running under
Tomcat. I used the basic template for the build file from

When I tried running this using the command:

ant -Dtomcat.home=<tomcat.home> -Dwebapp.path=<webapp.home>

I received a 'class cannot be found' error for the class org.apache.jasper.JspC which is referenced
in the <taskdef> ant task as follows:

<taskdef classname="org.apache.jasper.JspC" name="jasper2" >

I tried specifying a classpath attribute for the <taskdef> element to explicitly point
to the location of Tomcat's lib/catalina-compile.jar file (which contains the JspC class),
but I still get the error. I also put this in the CLASSPATH in the script I'm using to execute
the ant command, but to no avail.

I'd be grateful for any advice on how I can get Ant to pick up the org.apache.jasper.JspC
class, if anyone has any experience of this?

I'm using Ant 1.5.4 and Tomcat 4.0.6.



This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message