问题
I've got a problem using jDOM 1.0 with weblogic6. Just using the method XPath.newInstance(String)
, we encounter the following error message:
Caused by:
java.lang.NoClassDefFoundError: org/jaxen/jdom/JDOMXPath
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)
The class Parent is present in the jdom jar which is located in the lib directory of our web application. (Such as the jaxen beta 9 jar). I added `Jdom.jar and Jaxen beta 9 jar in classpath.
But don't really understand which solution is to be applied.
There is obviously a conflict with jaxen jar but what should we do exactly?
来源:https://stackoverflow.com/questions/8937195/java-lang-noclassdeffounderror-org-jaxen-jdom-jdomxpath