Bug 56560

Summary: Jasper ant task fails with java.lang.NoClassDefFoundError: org.apache.tomcat.util.descriptor.LocalResolver
Product: Tomcat 6 Reporter: M Gemmell <merglin>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.0.41   
Target Milestone: default   
Hardware: PC   
OS: All   
Attachments: patch for catalina-tasks.xml

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.