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.

  • 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: javax/xml/rpc/Service at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) 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 java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.jsp.attachment_005finfo_jsp._jspService(attachment_005finfo_jsp.java:82) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

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