geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <>
Subject G2.1 class loader error
Date Thu, 06 Mar 2008 08:55:00 GMT
Hi All!

I'm using G2.1 and I have a very weird class loader problem.

My application uses JDOM and Jaxen.
Jaxen is by default shipped with G2.1, I had only to add JDOM jar into
G2.1 repository.
I have added proper dependencies into my openejb-jar.xml.

The thing is that it looks like Geronimo loads only some (for sure not
all!) classes from JDOM jar.

For example looking at the following stacktrace (see below) I know
that following classes were

org.jdom.xpath.XPath, org.jdom.xpath.JaxenXPath, org.jaxen.jdom.JDOMXPath, and


But class loader did not load org/jdom/Parent class (it is listed in JDOM jar).

The stacktrace:

07:59:42,921 ERROR [JDOMXMLUtils] JDOMException exception was thrown!
org.jdom.JDOMException: java.lang.NoClassDefFoundError:
org/jdom/Parent: org/jdom/Parent
	at org.jdom.xpath.XPath.newInstance(


java.lang.NoClassDefFoundError: org/jdom/Parent
	at org.jaxen.jdom.JDOMXPath.<init>(
	at org.jdom.xpath.JaxenXPath.setXPath(
	at org.jdom.xpath.JaxenXPath.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


	at java.lang.reflect.Constructor.newInstance(
	at org.jdom.xpath.XPath.newInstance(

I had no idea what is going on...

It looks like classes that are explicitly defined work, classes that
are used/created by factories


any tips?

best regards
View raw message