0 Replies Latest reply on Jul 7, 2003 11:23 AM by el_que

    Undeployment error [Jboss 4 DR2]

    el_que Newbie

      Hi, I am pretty much new to JBoss (atleast to the version 4) and I have a problem with undeployment.

      Ok, I have a mywar.war i put it into the deploy directory and everything goes fine, I am able to view its pages etc.
      Now when i delete it from the deploy directory i get an error:
      16:54:27,956 INFO [MainDeployer] Undeploying file:/opt3/jboss/jboss-4.0.0DR2/server/default/deploy/vtestj.war
      16:54:27,956 INFO [EmbeddedCatalinaService41] undeploy, ctxPath=/vtestj, warUrl=file:/opt3/jboss/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/vtestj.war/65.vtestj.war/
      16:54:27,956 INFO [DeploymentInfo] undeployment exception in stop:
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:503)
      at org.jboss.deployment.DeploymentInfo.stop(DeploymentInfo.java:269)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java(Compiled Code))
      at org.jboss.mx.server.Invocation.invoke(Invocation.java(Compiled Code))
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java(Compiled Code))
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1036)
      at $Proxy14.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceController.java:478)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java(Compiled Code))
      at org.jboss.mx.server.Invocation.invoke(Invocation.java(Compiled Code))
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java(Compiled Code))
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:838)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:507)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:502)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:446)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java(Compiled Code))
      at org.jboss.mx.server.Invocation.invoke(Invocation.java(Compiled Code))
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java(Compiled Code))
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
      at $Proxy9.undeploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java(Compiled Code))
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
      Caused by: java.lang.NullPointerException
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performUndeploy(EmbeddedCatalinaService41.java:316)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:492)
      ... 39 more
      16:54:28,888 INFO [MainDeployer] Undeployed file:/opt3/jboss/jboss-4.0.0DR2/server/default/deploy/vtestj.war

      Later when I try to redeploy the file with the same name i get an error, telling me that the name vtestj is not unique.
      Server restart doesn't help.
      Where could have I messed up?

      Thanks in advance.