Bug 56560 - Jasper ant task fails with java.lang.NoClassDefFoundError: org.apache.tomcat.util.descriptor.LocalResolver
Summary: Jasper ant task fails with java.lang.NoClassDefFoundError: org.apache.tomcat....
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 6.0.41
Hardware: PC All
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2014-05-25 16:08 UTC by M Gemmell
Modified: 2014-06-11 21:23 UTC (History)
0 users

patch for catalina-tasks.xml (496 bytes, patch)
2014-05-25 16:08 UTC, M Gemmell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description M Gemmell 2014-05-25 16:08:21 UTC
Created attachment 31659 [details]
patch for catalina-tasks.xml

When importing bin/catalina-tasks.xml into an ant script, the Jasper task fails with the following error:
java.lang.NoClassDefFoundError: org.apache.tomcat.util.descriptor.LocalResolver

Problem appeared in 6.0.39 and still exists 6.0.41.
It seems that the bin/catalina-tasks.xml is missing a jar required by the Jasper task (tomcat-coyote.jar)
attached a patch.
Comment 1 Konstantin Kolinko 2014-05-26 14:24:46 UTC
Comment on attachment 31659 [details]
patch for catalina-tasks.xml

I wonder why catalina-tasks.xml lists individual jar files. It would be easier to just include all *.jar files into the classpath.
Comment 2 Mark Thomas 2014-05-28 13:22:05 UTC
Patch proposed for 6.0.x.

Regarding why list the JARs I suspect it is something to do with no having unnecessary dependencies but I'm not sure how much that really matters in this case.
Comment 3 Konstantin Kolinko 2014-06-11 21:23:09 UTC
Patch was applied and will be in 6.0.42 onwards.
Thank you.