java.lang.NoClassDefFoundError

tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

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

  • If an unexpected Exception happens in Rampart processing (for example a noclassdeffound). A NPE occurs in processing of the FaultMessage. That results in an HTML Error Page send to the caller. Cause Parameter clientSideParam = msgCtx.getAxisService().getParameter(PARAM_CLIENT_SIDE); msgCtx.getAxisService() seems to be null in the case of an earlier Exception original exception: 2008-05-08 10:28:22,358 [http-8080-Processor25] ERROR org.apache.axis2.transport.http.AxisServlet - org/saxpath/SAXPathException java.lang.NoClassDefFoundError: org/saxpath/SAXPathException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.rampart.RampartEngine.process(RampartEngine.java:78) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:91) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) Exception while processing faultmessage 2008-05-08 10:28:22,365 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet] - Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:172) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
    via by Stefan Lischke,
  • Erro ajax4jsf
    via by Fabinn,
  • Error while generating XML in Tomcat
    via by Manish Hatwalne,
  • tomcat 4.0.3 deployment problems
    via by Tim Partridge,
  • Not using groovy. Logback shouldn't impose dependency on groovy. java.lang.NoClassDefFoundError: groovy/lang/GroovyObject at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.5.0_22] at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ~[na:1.5.0_22] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) ~[na:1.5.0_22] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1960) ~[catalina.jar:na] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:931) ~[catalina.jar:na] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405) ~[catalina.jar:na] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) ~[catalina.jar:na] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ~[na:1.5.0_22] at ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter.detachReconfigurationToNewThread(ReconfigureOnChangeFilter.java:134) ~[logback-classic-0.9.22.jar:na] at ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter.decide(ReconfigureOnChangeFilter.java:114) ~[logback-classic-0.9.22.jar:na] at ch.qos.logback.classic.spi.TurboFilterList.getTurboFilterChainDecision(TurboFilterList.java:51) ~[logback-classic-0.9.22.jar:na] at ch.qos.logback.classic.LoggerContext.getTurboFilterChainDecision_0_3OrMore(LoggerContext.java:259) ~[logback-classic-0.9.22.jar:na] at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:413) ~[logback-classic-0.9.22.jar:na] at ch.qos.logback.classic.Logger.log(Logger.java:844) ~[logback-classic-0.9.22.jar:na] at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133) ~[jcl-over-slf4j-1.6.0.jar:1.1.1] at org.springframework.security.web.FilterChainProxy.getFilters(FilterChainProxy.java:182) ~[spring-security-web-3.0.2.RELEASE.jar:na] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:135) ~[spring-security-web-3.0.2.RELEASE.jar:na] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) ~[org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) ~[org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) ~[catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) ~[catalina.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) ~[catalina.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) [catalina.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [catalina.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [catalina.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) [catalina.jar:na] at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837) [tomcat-http.jar:na] at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640) [tomcat-http.jar:na] at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1287) [tomcat-util.jar:5.1] at java.lang.Thread.run(Thread.java:595) [na:1.5.0_22]
    via by Alvin Chee,
    • java.lang.NoClassDefFoundError: org/saxpath/SAXPathException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.rampart.RampartEngine.process(RampartEngine.java:78) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:91) at org.apache.axis2.engine.Phase.invoke(Phase.java:317)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    142 more bugmates