Bug 40802 - jasper2 ant task broken using bin/catalina-tasks.xml
jasper2 ant task broken using bin/catalina-tasks.xml
Product: Tomcat 5
Classification: Unclassified
Component: Catalina
Nightly Build
All All
: P4 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2006-10-19 22:19 UTC by Daniel Santos
Modified: 2006-10-19 23:51 UTC (History)
0 users

Patch to add jsp-api.jar into classpath ant tasks (525 bytes, patch)
2006-10-19 22:21 UTC, Daniel Santos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2006-10-19 22:19:30 UTC
bin/catalina-tasks.xml doesn't import jsp-api.jar, which contains classes the
jasper2 ant task requires.  Attempting to use the jasper2 task without
explicitly importing this jar results in

    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory

The following corrects this problem:

--- old/catalina-tasks.xml      2005-10-06 06:05:30.000000000 -0500
+++ new/catalina-tasks.xml      2006-10-20 00:12:29.885785000 -0500
@@ -14,6 +14,7 @@
       <fileset file="${catalina.home}/common/lib/jasper-compiler.jar"/>
       <fileset file="${catalina.home}/common/lib/jasper-runtime.jar"/>
       <fileset file="${catalina.home}/common/lib/servlet-api.jar"/>
+      <fileset file="${catalina.home}/common/lib/jsp-api.jar"/>
       <fileset file="${catalina.home}/server/lib/catalina-ant.jar"/>

Comment 1 Daniel Santos 2006-10-19 22:21:03 UTC
Created attachment 19033 [details]
Patch to add jsp-api.jar into classpath ant tasks
Comment 2 Peter Rossbach 2006-10-19 23:51:40 UTC
Fixed in SVN and will be included in 5.5.21 onwards.