AppEngine Error [ java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal ]

2 views
Skip to first unread message

tremendows via StackOverflow

unread,
May 6, 2016, 11:50:15 AM5/6/16
to google-appengin...@googlegroups.com

MAVEN SOLUTION:

Adding this version of the dependency to the pom.xml (if using maven) worked for me:

<dependency>
    <groupId>xml-apis</groupId>
    <artifactId>xml-apis</artifactId>
    <version>1.4.01</version>
</dependency>

SOLUTION FOR EVERYONE ELSE:

If not using maven, you can manually add the xml-apis library, version 1.4.01. You will find the jars inside the xml-commons binary package, and you can download it here: http://xerces.apache.org/mirrors.cgi. Finally compile and execute your java application/project with this version of the library.

Explanation:

The 1.4.01 version of the xml-apis library, includes the required ElementTraversal class. Other versions like 2.0.0, 1.0.0, etc. do not include it, and the application fails while compiling.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/10234201/appengine-error-java-lang-noclassdeffounderror-org-w3c-dom-elementtraversal/15197808#15197808

tremendows via StackOverflow

unread,
May 6, 2016, 12:30:04 PM5/6/16
to google-appengin...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages