Bug 40802 - jasper2 ant task broken using bin/catalina-tasks.xml
Summary: jasper2 ant task broken using bin/catalina-tasks.xml
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: Nightly Build
Hardware: All All
: P4 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 22:19 UTC by Daniel Santos
Modified: 2006-10-19 23:51 UTC (History)
0 users



Attachments
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"/>
     </classpath>
   </taskdef>

Daniel
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.
Thanks!