geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <lukasz.bud...@gmail.com>
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

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

org.jdom.JDOMException.

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(XPath.java:139)

...

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

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.jdom.xpath.XPath.newInstance(XPath.java:129)

I had no idea what is going on...

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

don't.

any tips?

best regards
Łukasz
Mime
View raw message