0 Replies Latest reply on Jun 21, 2005 2:32 AM by hkdennis2k

    JBoss AS [3.2.7] Exception throw while re-deploy my EAR

    hkdennis2k Newbie

      I am usign JBoss 3.2.7 on Sun JDK 1.5.0_03 on Windows XP.

      I cannot redeploy my EAR package without restarting.

      The EAR is running well on startup, and I can safely remove the EAR from /deploy/ folder, and JBoss say it is successfully undeployed. I have checked the jmx-console, it is nothing bad.

      But when I tried to re-deploy my EAR by copy to back to the /deploy/ folder(should I use jmx-console?). It just fail and throw Exceptions.
      But everything are ok if I restart my Jboss.


      It is a bug or my fault?

      -----
      14:22:36,104 WARN [org.jboss.deployment.DeploymentInfo] Could not delete file:/C:/jboss/server/default/tmp/deploy/tmp4494myear.ear-contents/myear.war/ restart will delete it
      14:22:36,119 INFO [org.jboss.deployment.EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss/server/default/deploy/myear.ear
      14:22:36,135 WARN [org.jboss.deployment.DeploymentInfo] Could not delete file:/C:/jboss/server/default/tmp/deploy/tmp4494myear.ear restart will delete it
      13:18:06,996 INFO [org.jboss.deployment.EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss/server/default/deploy/myear.ear
      13:18:06,996 WARN [org.jboss.deployment.DeploymentInfo] Could not delete file:/C:/jboss/server/default/tmp/deploy/tmp60312myear.ear restart will delete it
      13:18:07,168 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/jboss/server/default/deploy/myear.ear
      13:18:23,693 INFO [org.jboss.management.j2ee.JavaMailResource] Registration is not done -> stop
      13:18:24,037 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss/server/default/tmp/deploy/tmp60314myear.ear-contents/myear_core.sar
      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss/server/default/tmp/deploy/tmp60314myear.ear-contents/myear_core.sar; - nested throwable: (javax.management.InstanceNotFoundException: jboss.web.deployment:war=myear.war,id=-197604603 is not registered.)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      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:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
      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)
      Caused by: javax.management.InstanceNotFoundException: jboss.web.deployment:war=myear.war,id=-197604603 is not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:463)
      at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:478)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:746)
      at org.jboss.system.ServiceController.register(ServiceController.java:259)
      at org.jboss.system.ServiceController.create(ServiceController.java:292)
      at org.jboss.system.ServiceController.create(ServiceController.java:271)
      at org.jboss.system.ServiceController.create(ServiceController.java:349)
      at org.jboss.system.ServiceController.create(ServiceController.java:271)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:213)
      ... 21 more
      13:18:24,037 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss/server/default/deploy/myear.ear
      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss/server/default/tmp/deploy/tmp60314myear.ear-contents/myear_core.sar; - nested throwable: (javax.management.InstanceNotFoundException: jboss.web.deployment:war=myear.war,id=-197604603 is not registered.)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      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:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
      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)
      Caused by: javax.management.InstanceNotFoundException: jboss.web.deployment:war=myear.war,id=-197604603 is not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:463)
      at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:478)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:746)
      at org.jboss.system.ServiceController.register(ServiceController.java:259)
      at org.jboss.system.ServiceController.create(ServiceController.java:292)
      at org.jboss.system.ServiceController.create(ServiceController.java:271)
      at org.jboss.system.ServiceController.create(ServiceController.java:349)
      at org.jboss.system.ServiceController.create(ServiceController.java:271)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:213)
      ... 21 more