java.lang.NoClassDefFoundError: org/springframework/web/servlet/support/RequestContextUtils

Atlassian JIRA | Don Willis [Atlassian] | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    This probably doesn't affect customers much, but it affects me during development and may happen very occasionally to customers doing an upgrade. If you have a Web browser open and editing a page, then it sends out draft requests to Confluence periodically. If this happens while Confluence is being set up, then the following errors occur. {noformat} 2009-03-25 13:06:21,469 ERROR [http-8080-Processor25] [org.directwebremoting.spring.SpringCreator] error Error java.lang.InstantiationException: DWR can't find a spring config. See the logs for solutions at org.directwebremoting.spring.SpringCreator.getInstance(SpringCreator.java:141) at org.directwebremoting.spring.SpringCreator.getType(SpringCreator.java:106) at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:118) at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:100) at org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXmlConfigurator.java:274) at org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXmlConfigurator.java:224) at org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXmlConfigurator.java:170) at org.directwebremoting.impl.ContainerUtil.configureFromDefaultDwrXml(ContainerUtil.java:262) at org.directwebremoting.impl.ContainerUtil.configureContainerFully(ContainerUtil.java:419) at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:79) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:613) {noformat} The exception isn't propagated to the top, so the Servlet Container believes that the Servlet has been successfully initialised, so all calls to DWR once Confluence actually is set up (until it's restarted) are broken. Furthermore, the premature calls to the Spring container made by the DWRServlet's initialisation method can cause various things to break. Eg I just gave it a try and the Advanced Macros plugin wasn't enabled. {noformat} 2009-03-25 17:14:48,183 ERROR [http-8080-Processor19] [com.atlassian.plugin.DefaultPluginManager] addPlugins Unable to start the following plugins: confluence.macros.advanced -- referer: http://localhost:8080/confluence/setup/setuplicense.action | url: /confluence/setup/setupembeddeddb-default.action | userName: anonymous | action: setupembeddeddb-default 2009-03-25 17:14:51,437 ERROR [http-8080-Processor21] [[Catalina].[localhost].[/confluence].[dwr-invoker]] invoke Servlet.service() for servlet dwr-invoker threw exception java.lang.NoClassDefFoundError: org/springframework/web/servlet/support/RequestContextUtils at org.directwebremoting.spring.SpringCreator.getBeanFactory(SpringCreator.java:174) at org.directwebremoting.spring.SpringCreator.getInstance(SpringCreator.java:132) at org.directwebremoting.spring.SpringCreator.getType(SpringCreator.java:106) at org.directwebremoting.dwrp.BaseCallMarshaller.findMethod(BaseCallMarshaller.java:221) at org.directwebremoting.dwrp.BaseCallMarshaller.marshallInbound(BaseCallMarshaller.java:127) at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:44) at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) {noformat}

    Atlassian JIRA | 8 years ago | Don Willis [Atlassian]
    java.lang.NoClassDefFoundError: org/springframework/web/servlet/support/RequestContextUtils
  2. 0

    This probably doesn't affect customers much, but it affects me during development and may happen very occasionally to customers doing an upgrade. If you have a Web browser open and editing a page, then it sends out draft requests to Confluence periodically. If this happens while Confluence is being set up, then the following errors occur. {noformat} 2009-03-25 13:06:21,469 ERROR [http-8080-Processor25] [org.directwebremoting.spring.SpringCreator] error Error java.lang.InstantiationException: DWR can't find a spring config. See the logs for solutions at org.directwebremoting.spring.SpringCreator.getInstance(SpringCreator.java:141) at org.directwebremoting.spring.SpringCreator.getType(SpringCreator.java:106) at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:118) at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:100) at org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXmlConfigurator.java:274) at org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXmlConfigurator.java:224) at org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXmlConfigurator.java:170) at org.directwebremoting.impl.ContainerUtil.configureFromDefaultDwrXml(ContainerUtil.java:262) at org.directwebremoting.impl.ContainerUtil.configureContainerFully(ContainerUtil.java:419) at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:79) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:613) {noformat} The exception isn't propagated to the top, so the Servlet Container believes that the Servlet has been successfully initialised, so all calls to DWR once Confluence actually is set up (until it's restarted) are broken. Furthermore, the premature calls to the Spring container made by the DWRServlet's initialisation method can cause various things to break. Eg I just gave it a try and the Advanced Macros plugin wasn't enabled. {noformat} 2009-03-25 17:14:48,183 ERROR [http-8080-Processor19] [com.atlassian.plugin.DefaultPluginManager] addPlugins Unable to start the following plugins: confluence.macros.advanced -- referer: http://localhost:8080/confluence/setup/setuplicense.action | url: /confluence/setup/setupembeddeddb-default.action | userName: anonymous | action: setupembeddeddb-default 2009-03-25 17:14:51,437 ERROR [http-8080-Processor21] [[Catalina].[localhost].[/confluence].[dwr-invoker]] invoke Servlet.service() for servlet dwr-invoker threw exception java.lang.NoClassDefFoundError: org/springframework/web/servlet/support/RequestContextUtils at org.directwebremoting.spring.SpringCreator.getBeanFactory(SpringCreator.java:174) at org.directwebremoting.spring.SpringCreator.getInstance(SpringCreator.java:132) at org.directwebremoting.spring.SpringCreator.getType(SpringCreator.java:106) at org.directwebremoting.dwrp.BaseCallMarshaller.findMethod(BaseCallMarshaller.java:221) at org.directwebremoting.dwrp.BaseCallMarshaller.marshallInbound(BaseCallMarshaller.java:127) at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:44) at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) {noformat}

    Atlassian JIRA | 8 years ago | Don Willis [Atlassian]
    java.lang.NoClassDefFoundError: org/springframework/web/servlet/support/RequestContextUtils
  3. 0

    NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil

    Stack Overflow | 12 months ago | bpgergo
    java.lang.NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/springframework/web/servlet/support/RequestContextUtils

      at org.directwebremoting.spring.SpringCreator.getBeanFactory()
    2. Direct Web Remoting
      DwrServlet.doPost
      1. org.directwebremoting.spring.SpringCreator.getBeanFactory(SpringCreator.java:174)
      2. org.directwebremoting.spring.SpringCreator.getInstance(SpringCreator.java:132)
      3. org.directwebremoting.spring.SpringCreator.getType(SpringCreator.java:106)
      4. org.directwebremoting.dwrp.BaseCallMarshaller.findMethod(BaseCallMarshaller.java:221)
      5. org.directwebremoting.dwrp.BaseCallMarshaller.marshallInbound(BaseCallMarshaller.java:127)
      6. org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:44)
      7. org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
      8. org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
      8 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames
    4. Glassfish Core
      ApplicationFilterChain.internalDoFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      1 frame