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
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by Erik Hatcher on December 22, 2002 at 02:44 AM MST #
Posted by rich on December 27, 2002 at 12:23 PM MST #
Posted by Matt Raible on December 29, 2002 at 05:54 AM MST #