Announcement Announcement Module
Collapse
No announcement yet.
servletexception while unloading spring application context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • servletexception while unloading spring application context

    Hi,
    I am getting exception while undeploying spring root application context while shutdown the jboss server.


    Servlet action threw unload() exception
    javax.servlet.ServletException: Servlet.destroy() for servlet action threw exception
    at org.apache.catalina.core.StandardWrapper.unload(St andardWrapper.java:1339)
    at org.apache.catalina.core.StandardWrapper.stop(Stan dardWrapper.java:1654)
    at org.apache.catalina.core.StandardContext.stop(Stan dardContext.java:4345)
    at org.apache.catalina.core.ContainerBase.destroy(Con tainerBase.java:1132)
    at org.apache.catalina.core.StandardContext.destroy(S tandardContext.java:4449)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performUnd eployInternal(TomcatDeployer.java:450)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performUnd eploy(TomcatDeployer.java:421)
    at org.jboss.web.AbstractWebDeployer.stop(AbstractWeb Deployer.java:418)
    at org.jboss.web.WebModule.stopModule(WebModule.java: 100)
    at org.jboss.web.WebModule.stopService(WebModule.java :66)


    I try to solve this problem for 2 weeks. still no solution.
    Can you please tell your suggesstions to resolve this.

    Thanks in advance.

  • #2
    Please use [ code][/code ] tags when posting stacktraces?

    Is this your whole stacktrace if it is, there doesn't seem to be a Spring class in place anywhere.... Only some jboss, tomcat and apache common classes.

    Comment


    • #3
      Hi Marten,
      See the whole stacktrace.

      [ code]

      javax.servlet.ServletException: Servlet.destroy() for servlet action threw exception
      at org.apache.catalina.core.StandardWrapper.unload(St andardWrapper.java:1339)
      at org.apache.catalina.core.StandardWrapper.stop(Stan dardWrapper.java:1654)
      at org.apache.catalina.core.StandardContext.stop(Stan dardContext.java:4345)
      at org.apache.catalina.core.ContainerBase.destroy(Con tainerBase.java:1132)
      at org.apache.catalina.core.StandardContext.destroy(S tandardContext.java:4449)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performUnd eployInternal(TomcatDeployer.java:450)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performUnd eploy(TomcatDeployer.java:421)
      at org.jboss.web.AbstractWebDeployer.stop(AbstractWeb Deployer.java:418)
      at org.jboss.web.WebModule.stopModule(WebModule.java: 100)
      at org.jboss.web.WebModule.stopService(WebModule.java :66)
      at org.jboss.system.ServiceMBeanSupport.jbossInternal Stop(ServiceMBeanSupport.java:315)
      at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:247)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:978)
      at $Proxy0.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceCon troller.java:508)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:210)
      at $Proxy38.stop(Unknown Source)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWe bContainer.java:498)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 42)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke (DynamicInterceptor.java:97)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:210)
      at $Proxy39.stop(Unknown Source)
      at org.jboss.deployment.MainDeployer.stop(MainDeploye r.java:667)
      at org.jboss.deployment.MainDeployer.stop(MainDeploye r.java:659)
      at org.jboss.deployment.MainDeployer.undeploy(MainDep loyer.java:638)
      at org.jboss.deployment.MainDeployer.shutdown(MainDep loyer.java:516)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 42)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.system.server.ServerImpl$ShutdownHook.sh utdownDeployments(ServerImpl.java:1050)
      at org.jboss.system.server.ServerImpl$ShutdownHook.sh utdown(ServerImpl.java:1025)
      at org.jboss.system.server.ServerImpl$ShutdownHook.ru n(ServerImpl.java:988)

      [/code ]


      -------------------------------------------------

      If Jboss shutdown without any exception means , then it will be

      [code ]

      [org.springframework.web.context.support.XmlWebAppl icationContext] Closing application context [Root WebApplicationContext]
      [org.springframework.scheduling.quartz.SchedulerFac toryBean] Shutting down Quartz scheduler
      [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
      [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.

      [/code ]


      ------------------------------------------------------
      From the above log , i understood as the problem occurs while undeploying the application context files. i am not sure.
      Kindly give your inputs .It will be really useful for me.


      Thanks

      Comment

      Working...
      X