java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
Asked Answered
E

1

1

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

Executrix answered 5/6, 2012 at 13:9 Comment(0)
G
3

Include dom4j-1.6.1.jar.

Since you are mapping to the version 1.6.1

Grisly answered 5/6, 2012 at 13:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.