java.lang.NoClassDefFoundError: org/jaxen/jdom/JDOMXPath
我在使用 jDOM 1.0 和 weblogic6 时遇到问题。仅使用 XPath.newInstance(String) 方法,我们会遇到以下错误消息:
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)
Parent 类存在于 jdom jar 中,该 jar 位于我们的 Web 应用程序的 lib 目录中。 (例如 jaxen beta 9 jar)。我在类路径中添加了`Jdom.jar 和 Jaxen beta 9 jar。
但不太明白要应用哪种解决方案。
显然和jaxen jar有冲突,但是我们到底应该怎么做呢?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论