Saturday December 21, 2002
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 in Java at Dec 21 2002, 05:23:49 PM MST 3 Comments
Search This Site
Recent Entries
- What's Next
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
Posted by Erik Hatcher on December 22, 2002 at 01:44 AM MST #
Posted by rich on December 27, 2002 at 11:23 AM MST #
Posted by Matt Raible on December 29, 2002 at 04:54 AM MST #