Ant's jspc task - doesn't work on Tomcat 4.1.18
I'm trying to use Ant's JSPC task to pre-compile my JSPs. I've used Erik Hatcher's example from Java Development with Ant. It works great when using a 4.0.x version of Tomcat, and the following jasper.classpath:
<path id="jasper.classpath"> <fileset dir="${tomcat.home}/lib"> <include name="jasper-*.jar"/> </fileset> <fileset dir="${tomcat.home}/common/lib"> <include name="servlet.jar"/> </fileset> </path>
However, it doesn't work on Tomcat 4.1.17. I had to change the jasper.classpath to find the appropriate jars (they're in different directories now), plus I had to include ant.jar or I got java.lang.NoClassDefFoundError: org/apache/tools/ant/AntClassLoader
. Where everything works on the older Tomcat version, now it fails - what gives?
compile-jsp: [jspc] Compiling 8 source filesD:\source\appfuse\build\jspc\java [jasperc] 2002-12-21 11:15:51 - uriRoot implicitly set to "D:\Tools\tomcat-4.1.17\webapps\appfuse" [jasperc] error:/common/footer.jsp(0,0) null [jasperc] 2002-12-21 11:15:53 - ERROR-the file '\common\footer.jsp' generated the following general exception: org.apache.jasper.JasperException: /common/footer.jsp(0,0) null
Posted by Erik Hatcher on December 22, 2002 at 08:44 AM MST #
Posted by rich on December 27, 2002 at 06:23 PM MST #
Posted by Matt Raible on December 29, 2002 at 11:54 AM MST #