问题
In my app, in runtime I was getting java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
So after looking into this thread I added dom4j.jar
and jaxen.jar
to my classpath using maven:
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>full</version>
</dependency>
After dong that I have encountered a differnt exception:
java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
I was not able to locate any proper solution. Any ideas?
Thanks in advance
回答1:
Include dom4j-1.6.1.jar.
Since you are mapping to the version 1.6.1
来源:https://stackoverflow.com/questions/10897922/java-lang-noclassdeffounderror-org-saxpath-saxpathexception