4 Replies Latest reply on Apr 1, 2004 11:41 PM by cenos

    Very strange behaviour with Jboss 3.2.2 + jboss.net

    cenos Newbie

      Hi,

      I'been using jboss 3.2.1 and now I'm trying to migrate to jboss 3.2.2 to use Axis 1.1.
      If I copy the jboss-net.sar from server/all/deploy to server/default/deploy and start jboss, the following thing occurs:

      ...
      2003-12-08 01:47:58,831 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/Devel-Tools/jboss-3.2.2/server/default/deploy/management/web-console.war
      2003-12-08 01:47:58,891 ERROR [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Problem in init
      org.jboss.deployment.DeploymentException: Was unable to move war to: E:\Devel-Tools\jboss-3.2.2\server\default\tmp\deploy\tmp41801web-console.war.tmp
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:296)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      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.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      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 $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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 $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)
      2003-12-08 01:47:58,961 WARN [org.jboss.util.NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      2003-12-08 01:47:58,971 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deloyment: file:/E:/Devel-Tools/jboss-3.2.2/server/default/deploy/management/web-console.war
      org.jboss.deployment.DeploymentException: Was unable to move war to: E:\Devel-Tools\jboss-3.2.2\server\default\tmp\deploy\tmp41801web-console.war.tmp; - nested throwable: (org.jboss.deployment.DeploymentException: Was unable to move war to: E:\Devel-Tools\jboss-3.2.2\server\default\tmp\deploy\tmp41801web-console.war.tmp)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:350)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      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.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      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 $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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 $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: org.jboss.deployment.DeploymentException: Was unable to move war to: E:\Devel-Tools\jboss-3.2.2\server\default\tmp\deploy\tmp41801web-console.war.tmp
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:296)
      ... 48 more
      ...

      The problem is:
      "Was unable to move war to: E:\Devel-Tools\jboss-3.2.2\server\default\tmp\deploy\tmp41801web-console.war.tmp"

      I see the code and that only occurs if the program cannot rename the file... but I saw in the folder and the file was there, renamed!!!

      If I start Jboss 3.2.2 without jboss-net.sar, that doesn't occur!!

      If I start Jboss 3.2.2 with "all" (server/all/deploy). That problem doesn't occur, but my application doesn't deploy!! It appears on the screen:

      2003-12-08 02:08:01,741 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/Devel-Tools/jboss-3.2.2/server/all/deploy/p4t.ear
      2003-12-08 02:08:01,761 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/E:/Devel-Tools/jboss-3.2.2/server/all/deploy/p4t.ear
      2003-12-08 02:08:03,543 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/E:/Devel-Tools/jboss-3.2.2/server/all/deploy/p4t.ear
      2003-12-08 02:08:03,543 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/Devel-Tools/jboss-3.2.2/server/all/deploy/p4t.ear

      But the correct is (deployed in server/default without jboss-net.sar):
      ...
      2003-12-08 02:11:39,123 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/Devel-Tools/jboss-3.2.2/server/default/deploy/p4t.ear
      2003-12-08 02:11:39,143 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/E:/Devel-Tools/jboss-3.2.2/server/default/deploy/p4t.ear
      2003-12-08 02:11:44,792 INFO [org.jboss.ejb.EjbModule] Deploying N_thExamProcess
      2003-12-08 02:11:44,982 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@381a53
      2003-12-08 02:11:44,982 INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@1484a8a
      2003-12-08 02:11:44,982 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added p4t, org.jboss.security.plugins.SecurityDomainContext@115c974 to map
      2003-12-08 02:11:45,312 INFO [org.jboss.ejb.EjbModule] Deploying PartialExam
      2003-12-08 02:11:45,332 INFO [org.jboss.ejb.EjbModule] Deploying EnrolmentProcess
      2003-12-08 02:11:45,382 INFO [org.jboss.ejb.EjbModule] Deploying SystemUser
      ...

      With Jboss 3.2.1, it runs perfectly!!

      My system is:
      - Windows 2000 - SP4
      - J2SDK 1.4.2_02
      - AMD Athlon

      Any ideas!?

      Thanks in advance!