java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal

JIRA | Konstantin Hyppönen | 4 years ago
  1. 0

    The current master branch or branch tagged 1.0 of epsos protocol terminators server does not deploy properly. Tried to use mock implementation of the national connector. Did not have such problems with pre-1.0 builds. {code} Nov 30, 2012 1:22:17 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive epsos-ws-server.war log4j:WARN Error during default initialization java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:858) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.apache.axis2.deployment.DeploymentEngine.<clinit>(DeploymentEngine.java:76) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 56 more log4j:WARN No appenders could be found for logger (org.apache.axis2.deployment.WarBasedAxisConfigurator). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. {code} The same happens if I build OpenNCP 1.0 with the mock implementation. The pre-built war https://joinup.ec.europa.eu/nexus/content/repositories/releases/eu/europa/ec/joinup/ecc/epsos-protocol-terminators/epsos-ncp-server/epsos-ws-server/1.0/epsos-ws-server-1.0.war deploys normally but does nothing as there is no mock national connector in it.

    JIRA | 4 years ago | Konstantin Hyppönen
    java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  2. 0

    Grails 2.2.1 war fails to deploy

    Stack Overflow | 4 years ago | AKJ
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  3. 0

    Spring CRUD + Maven Example - Genuitec

    genuitec.com | 2 months ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring CRUD + Maven Example - Genuitec

    myeclipseide.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  6. 0

    Spring MVC and Hibernate - ClassNotFound DispatcherServlet

    Stack Overflow | 5 years ago | Philippxp
    java.lang.NoClassDefFoundError: org/springframework/context/EnvironmentAware

  1. treefolk 1 times, last 1 week ago
  2. Tahir 2 times, last 2 months ago
  3. Piz 2027 times, last 4 months ago
  4. jedcua 1 times, last 4 months ago
  5. esaar 3 times, last 4 months ago
5 more registered users
89 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.w3c.dom.ElementTraversal

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    2 frames
  3. Java RT
    SecureClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    4 frames
  4. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
    2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
    4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    4 frames
  5. Xerces2-j
    DocumentBuilderImpl.parse
    1. org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
    2. org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
    3. org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
    4. org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
    5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    8. org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    9. org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    9 frames
  6. Apache Log4j
    Logger.getLogger
    1. org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
    2. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
    3. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
    4. org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    5. org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    6. org.apache.log4j.Logger.getLogger(Logger.java:104)
    6 frames
  7. Apache Commons Logging
    Log4JLogger.<init>
    1. org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
    2. org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
    2 frames
  8. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    4 frames
  9. Apache Commons Logging
    LogFactory.getLog
    1. org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
    2. org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:858)
    3. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
    4. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
    5. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
    6. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
    6 frames
  10. org.apache.axis2
    DeploymentEngine.<clinit>
    1. org.apache.axis2.deployment.DeploymentEngine.<clinit>(DeploymentEngine.java:76)
    1 frame
  11. Apache Axis2 - Transport - HTTP
    AxisServlet.init
    1. org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
    2. org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
    2 frames
  12. Glassfish Core
    ContainerBase$ContainerBackgroundProcessor.run
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    8. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
    9. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    10. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
    11. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385)
    12. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
    13. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    14. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
    15. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
    16. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
    17. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
    17 frames
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame