2 Replies Latest reply on Nov 8, 2002 12:22 PM by Mike Stephen

    Undeployment Problem JBoss 3 + Tomcat 4.1

    yufu Newbie

      I can't auto-deploy any applications. The problem was caused by one undeployment problem as the following.


      13:54:23,000 ERROR [MainDeployer] Undeployment failed: file:/E:/jboss-3.0.3_tomcat-4.1.12/server/def
      ault/deploy/http-invoker.sar/invoker.war/
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPo
      interException)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:355)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:469)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:443)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:331)
      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:517)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:717)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:700)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:688)
      Caused by: java.lang.NullPointerException
      at org.jboss.util.file.Files.delete(Files.java:39)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performUndeploy(EmbeddedCatalinaService4
      1.java:330)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:345)
      ... 12 more


      Any help? Thanks.

        • 1. Re: Undeployment Problem JBoss 3 + Tomcat 4.1
          Mike Stephen Newbie

          this probably doesn't help much, but i'm getting the same problem trying to undeploy a war file using the jboss-3.0.3_tomcat-4.1.12 bundle on win2k. this didn't happen with an earlier bundle jboss-3.0.0_tomcat-4.0.3. it seems to lose the tomcat work directory as this trace would suggest:

          2002-11-08 14:26:18,687 INFO [org.jboss.deployment.MainDeployer] Undeploying file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/microsites.war
          2002-11-08 14:26:18,687 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] undeploy, ctxPath=/microsites, warUrl=file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/microsites.war/100.microsites.war
          2002-11-08 14:26:18,687 INFO [org.jboss.web.localhost.Engine] StandardHost[localhost]: Removing web application at context path /microsites
          2002-11-08 14:26:18,687 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Deleting catalina work dir: null
          2002-11-08 14:26:18,687 ERROR [org.jboss.deployment.MainDeployer] Undeployment failed: file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/microsites.war
          org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
          at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:355)
          at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:469)
          at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:443)
          at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:331)
          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:517)
          at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:717)
          at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:700)
          at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:688)
          Caused by: java.lang.NullPointerException
          at org.jboss.util.file.Files.delete(Files.java:39)
          at org.jboss.web.catalina.EmbeddedCatalinaService41.performUndeploy(EmbeddedCatalinaService41.java:330)
          at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:345)
          ... 12 more

          any help would be much appreciated.

          • 2. Re: Undeployment Problem JBoss 3 + Tomcat 4.1
            Mike Stephen Newbie

            this probably doesn't help much, but i'm getting the same problem trying to undeploy a war file using the jboss-3.0.3_tomcat-4.1.12 bundle on win2k. this didn't happen with an earlier bundle jboss-3.0.0_tomcat-4.0.3. it seems to lose the tomcat work directory as this trace would suggest:

            2002-11-08 14:26:18,687 INFO [org.jboss.deployment.MainDeployer] Undeploying file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/microsites.war
            2002-11-08 14:26:18,687 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] undeploy, ctxPath=/microsites, warUrl=file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/microsites.war/100.microsites.war
            2002-11-08 14:26:18,687 INFO [org.jboss.web.localhost.Engine] StandardHost[localhost]: Removing web application at context path /microsites
            2002-11-08 14:26:18,687 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Deleting catalina work dir: null
            2002-11-08 14:26:18,687 ERROR [org.jboss.deployment.MainDeployer] Undeployment failed: file:/C:/Applications/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/microsites.war
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
            at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:355)
            at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:469)
            at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:443)
            at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:331)
            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:517)
            at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:717)
            at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:700)
            at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:688)
            Caused by: java.lang.NullPointerException
            at org.jboss.util.file.Files.delete(Files.java:39)
            at org.jboss.web.catalina.EmbeddedCatalinaService41.performUndeploy(EmbeddedCatalinaService41.java:330)
            at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:345)
            ... 12 more

            any help would be much appreciated.