Jump to content

Jasper Digester Problem with JDK1.4 & Tomcat

Recommended Posts

By: Ivan Gum - ivangum

Jasper Digester Problem with JDK1.4 & Tomcat

2003-05-27 18:52

I'm able to have Jasper generate HTML reports fine as a Java app. But have a problem using it with Tomcat 4.1.24 and J2SE1.4.1 and J2EE 1.4b. My servlet runs fine but when Jasper tries to compile, it gets a class NoClassDefFoundError for org.apache.commons.digester.Digester (below). It may have something to do with conflicting XML parsers used by Jasper vs that used by Tomcat or JDK1.4. I'm so close to getting this web reporting work. I read the Tomcat 4.1.24 Classloading documentation but still can't get it to work. Can anyone help me? Thanks.


java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:502)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)

at java.net.URLClassLoader.access$100(URLClassLoader.java:54)

at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:186)

at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)

at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

at dori.jasper.engine.xml.JRXmlLoader.prepareDigester(JRXmlLoader.java:428)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:370)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at org.isd.ReportServlet.doGet(ReportServlet.java:49)






By: Teodor Danciu - teodord

RE: Jasper Digester Problem with JDK1.4 & Tom

2003-05-28 00:08




Have you placed commons-digester.jar and the other

commons-xxx.jar files from the /lib directory of the

project into your WEB-INF/lib directory?


Your error comes from the fact that the Jakarta Digester

library is missing from the classpath of you web appplication.


Thank you,


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...