1 Reply Latest reply on Sep 27, 2004 6:09 AM by raz

    destroyed desn't called from servlet container

    raz Newbie

      I'm using jboss 3.2.3 (with tomcat 4.1 ) and my container doesn't seem to call the servlet destroy() method .

      can any one help me with that ?

        • 1. Re: destroyed desn't called from servlet container
          raz Newbie

          Sorry it doe's call dstroy but when I'm creatin Thread in the init() method
          and then try to destroy() my Thread in destroy I get the following exception :(my servlet name is StartErverServlet)

          11:37:18,828 ERROR [Engine] StandardWrapper[/server:StartServerServlet]: Servlet StartServerServlet threw unload() exceptio
          javax.servlet.ServletException: Servlet.destroy() for servlet StartServerServlet threw exception
          at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1135)
          at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1356)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
          at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.stop(SingleSignOnContextConfig.java:814)
          at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:257)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3690)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
          at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:470)
          at org.apache.catalina.core.StandardHost.remove(StandardHost.java:868)
          at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performUndeploy(EmbeddedTomcatService.java:348)
          at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:476)
          at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
          at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:504)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:467)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:440)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy6.undeploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:332)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:452)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
          11:37:18,875 ERROR [Engine] ----- Root Cause -----
          java.lang.NoSuchMethodError
          at java.lang.Thread.destroy(Thread.java:779)
          at com.idi.framework.environment.server.servlet.StartServerServlet.destroy(StartServerServlet.java:311)
          at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1124)
          at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1356)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
          at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.stop(SingleSignOnContextConfig.java:814)
          at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:257)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3690)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
          at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:470)
          at org.apache.catalina.core.StandardHost.remove(StandardHost.java:868)
          at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performUndeploy(EmbeddedTomcatService.java:348)
          at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:476)
          at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
          at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:504)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:467)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:440)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy6.undeploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:332)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:452)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)