NoClassDefFoundError: org/w3c/dom/ElementTraversal

Related searches

I installed Jetty 7 and configured it correcty for IdP Shibboleth following this guide:

But when i try to start Jetty I get this error:

NoClassDefFoundError: org/w3c/dom/ElementTraversal

To resolve this issue i need to install the ElementTraversal dependency and include it on my classpath. But how can i accomplish this? Do i need to download this Class [ElementTraversal.class] or a .jar file? and where i can place it? in the JETTY_HOME? Do I need to export the CLASSPATH?

Can someone help me? Thank you so much!

It looks like ElementTraversal is part of xml-apis-2.10.0.jar which should have been provided with your Shibboleth installation.

So if you were following these instructions you should also have followed this step:

Endorse Xerces and Xalan by creating the directory JETTY_HOME/lib/endorsed/ and copy the .jar files included in the IdP source endorsed/ directory into the newly created directory.

So long as you copied all the jar files appropriately, it should be okay. My guess is that you missed out that step - or perhaps only copied the jar files with Xalan or Xerces in the name, and missed the other two.

java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal , java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal #76. Closed. pierrettemugisha opened this issue on Oct 27, 2016 � 3 comments. Closed� We have a play 2.4 project. It is bringing in xml-apis 2.0.2 however, when we start up the app connected to NewRelic, we get the following stack trace. How do we solve this issue. Our other projects use xml-apis 1.4 and have no issues with initialization. Jan 4, 2016 18:50:13 +0000 [13 1] com.newrelic INFO: New Relic Agent v3.24.1 is initializing Jan 4, 2016 18:50:13 +0000 [13 1] com

In my case the problem was fixed by changing xml-apis version from 1.3.04 to 1.4.01.

BTW, version 2.10.0 doesn't exist in Maven Central (I'm curious where did Jon Skeet find it).

NoClassDefFound org/w3c/dom/ElementTraversal � Issue #152 , How to resolve java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal ? Remove the existing Apache POI dependency and add the� Also, I wouldn't use IntelliJ to run servlets. I would use a copy of whatever you plan to use to run the servlets in real life. Tomcat, or something like that.There's little point in testing in an environment which differs radically from your target environment.

Add this in your file, to resolve the dependency:


NoClassDefFound org/w3c/dom/ElementTraversal, ElementTraversal in pipeline maven plugin. Log In. Export NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang. ClassLoader. See've tried to remove and replace it with org.apache.servicemix.specs/org.apache

How to resolve java.lang.NoClassDefFoundError: org/w3c/dom , You are landed on Q2A(question2answer) site for Software Testing professionals. Hope you get your answer. If you have a better answer, kindly click answer and add your answer to it.

ClassNotFoundException: org.w3c.dom.ElementTraversal in , Apache NetBeans Bugzilla – Bug 235090 ClassNotFoundException: org.w3c.dom.ElementTraversal Last modified: 2013-08-27 17:25:45 UTC

[JENKINS-47710] ClassNotFoundException: org.w3c.dom , I just added the dependencyto my maven project and I am getting this trace for ChromeDriverManager.getInstance().setup(); InternetExplorerDriverManager.getInstance().setup();` I didn't want to put in twa trace, so replace where there is

  • Thank you so much, but I also have followed that step. I copied the xalan-2.7.1.jar and xercesImpl-2.10.0.jar correctly to JETTY_HOME/lib/endorsed/ and I added the following line in start.ini: -Djava.endorsed.dirs=lib/endorsed I followed all the steps.
  • I have the xml-apis-2.10.0.jar in opt/shibboleth-idp/lib/endorsed/xml-apis-2.10.0.jar.. I think that the problem could be in the path defined in start.ini. I can try to use an absolute path -Djava.endorsed.dirs=/home/user/webapps/jetty/lib/endorsed
  • Doesn't work also with the absolute path. Thank you Jon Skeet, it has given me great pleasure and honour to have received a response from you to my question.
  • @Fuiba: It's not clear whether you copied all four jar files into JETTY_HOME/lib/endorsed. You say you've got xml-apis-2.10.0.jar in opt/shibboleth-idp/lib/endorsed, but should have copied it along with the xalan and xerces jar files. Did you?
  • @Fuiba: But before the change it already said "copy the .jar files included in the IdP source endorsed/ directory" - I don't think it was a mistake as such, although I agree it's clearer now.
  • A supplement of this useful answer from 2016 Dec, in maven there is also a 2.0.0 and 2.0.2 version of xml-apis, but they are not new jar, they are just a pom, saying relocation to 1.0.b2. I don't know which team is behind this, but if they don't want to open their code they don't have to put it in maven, this is understandable. But they put it there, and relocation it to a lower version, which is a waste of many developers time (I see over 100 usages of 2.0 version), and this is not acceptable.
  • @Tiina this is excatly my case...a shame that I couldn't find this comment first. However, can you complete this and tell us how to get the correct versions using maven?
  • @ConquerorsHaki I usually find the correct version using stackoverflow. And try to use the version that has both higher version and acceptable number of usages. While I use xml-apis 2.0 but don't have the problem solved, I looked into its pom, and I found that "relocation to a lower" oops. Usually people would think about their Internet issue first when they don't see a difference after they update their pom. That was my first concern too.
  • This magicaly worked for me and the code: ` private static void generateHTMLFromPDF(String filename) throws IOException, ParserConfigurationException { PDDocument pdf = PDDocument.load(new File(filename)); Writer output = new PrintWriter("pdf.html", "utf-8"); new PDFDomTree().writeText(pdf, output); output.close(); }` started to work!