java.lang.NoClassDefFoundError

org/w3c/dom/ElementTraversal

Samebug tips4

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web18826

  • via Liferay Issues by Alexey Kakunin, 11 months ago
    org/w3c/dom/ElementTraversal
  • via GitHub by Maatary
    , 1 year ago
    org/w3c/dom/ElementTraversal
  • org/w3c/dom/ElementTraversal
  • Stack trace

    • java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang.ClassLoader.defineClass1(Native Method)[na:1.8.0_66] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[na:1.8.0_66] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[na:1.8.0_66] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)[na:1.8.0_66] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)[na:1.8.0_66] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)[na:1.8.0_66] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)[na:1.8.0_66] at java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_66] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)[na:1.8.0_66] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_66] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_66] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_66] at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[xerces.xercesImpl-2.11.0.jar:na] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)[na:1.8.0_66] at com.newrelic.agent.extension.dom.ExtensionDomParser.getSchema(ExtensionDomParser.java:278)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.dom.ExtensionDomParser.getDocument(ExtensionDomParser.java:296)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.dom.ExtensionDomParser.readFile(ExtensionDomParser.java:155)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.ExtensionParsers$3.parse(ExtensionParsers.java:46)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.JarExtension.<init>(JarExtension.java:116)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.JarExtension.create(JarExtension.java:96)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.ExtensionService.initializeBuiltInExtensions(ExtensionService.java:157)[newrelic.jar:3.24.1] at com.newrelic.agent.extension.ExtensionService.doStart(ExtensionService.java:93)[newrelic.jar:3.24.1] at com.newrelic.agent.service.AbstractService.start(AbstractService.java:56)[newrelic.jar:3.24.1] at com.newrelic.agent.service.ServiceManagerImpl.doStart(ServiceManagerImpl.java:144)[newrelic.jar:3.24.1] at com.newrelic.agent.service.AbstractService.start(AbstractService.java:56)[newrelic.jar:3.24.1] at com.newrelic.agent.Agent.premain(Agent.java:251)[newrelic.jar:3.24.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66] at com.newrelic.bootstrap.BootstrapAgent.startAgent(BootstrapAgent.java:142)[newrelic.jar:3.24.1] at com.newrelic.bootstrap.BootstrapAgent.premain(BootstrapAgent.java:109)[newrelic.jar:3.24.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66] at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)[na:1.8.0_66] at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)[na:1.8.0_66] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_66] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_66] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_66] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_66] ... 46 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1587 more bugmates