aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule" Watch "java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule" New topic
Author

java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule

Md Mathew
Greenhorn

Joined: Feb 14, 2011
Posts: 1
We are getting this error message at runtime. We are using iText-2.1.7.jar, jasperreports-3.5.3.jar, & commons-digester-2.0.jar files for a Weblogic Portal app on an AIX server. The files above are deployed as shared libraries on the server. There's a JasperHelper function that we've created within a Common.jar file that calls the JasperReport classes. Within this Common.jar file we also have the iText-2.1.7.jar, jasperreports-3.5.3.jar, & commons-digester-2.0.jar files under the lib directory. The jar files are all there, but why can't it find the org.apache.commons.digester classes? Thanks.

Feb 9, 2011 4:47:27 PM CST> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <B
undError unhandled by the current page flow (and any shared flow)

hrowable: java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule
tack Trace:
ava.lang.NoClassDefFoundError: org.apache.commons.digester.Rule
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at net.sf.jasperreports.components.ComponentsExtensionsRegistryFactory.<clinit>(ComponentsExtensionsR
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:172)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:161)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:119)
at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:57)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsReg
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.
at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:80)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:177)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:78)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:60)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:628)
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 200
    
    1

NoClassDefFoundError can often be resolved by correcting the classpath, but that is generally due to synching classes. Multiple jars or paths with multiple versions of a class, or multiple class loaders (which servlet and JEE engines often use) can also cause the error. So, anything that makes runtime classes different from the compilation environment can cause NoClassDefFoundError.
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 200
    
    1

http://www.ibm.com/developerworks/java/library/j-dclp2.html

This link is a good resource to NoClassDefFoundError and could be used as a further read.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.NoClassDefFoundError: org.apache.commons.digester.Rule