-
1. Re: Using JDOM 1.0 in a WAR - Web application archive
jaikiran Jul 25, 2005 4:24 AM (in response to hcmeyer)Make sure there NO other jdom.jar in your classpath
-
2. Re: Using JDOM 1.0 in a WAR - Web application archive
jamesschopp Aug 19, 2005 3:11 PM (in response to hcmeyer)I have the *exact* same error, also on JBoss 4.0.2. Even if I remove the jdom.jar from my exploded WAR, it appears that JDom is getting loaded from somewhere else (other JDom classes are executed on the call stack), but this particular class fails:
org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Text: org/jdom/Text
at org.jdom.xpath.XPath.newInstance(XPath.java:139)
There are no other copies of jdom.jar floating around, but these incompatible classes are getting laoded from somewhere!
Any ideas? -
3. Re: Using JDOM 1.0 in a WAR - Web application archive
peterj Aug 19, 2005 3:21 PM (in response to hcmeyer)Try setting the -verbose:class JVM command line option. The resulting output should give you some indication of where JDOM is being loaded from.
-
4. Re: Using JDOM 1.0 in a WAR - Web application archive
jamesschopp Aug 22, 2005 1:21 PM (in response to hcmeyer)I got it to work:
JBoss has a copy of jaxen.jar in the jboss\lib directory. By removing that and including my own version of of jaxen in my app, everything works fine.