java.lang.NoClassDefFoundError: org/jaxen/jdom/JDOMXPath

送分小仙女□ 提交于 2019-12-11 11:08:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!