java.lang.NoClassDefFoundError: org/saxpath/SAXPathException

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 07:40:00

问题


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

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