0 Replies Latest reply on Jun 4, 2004 10:05 AM by Manfred Hagenauer

    Hot Deploying doesn't work

    Manfred Hagenauer Newbie

      We are curently testing TreeCache on a Clustered JBOSS 3.2.3 and we are Beginners for J2EE and use the Lomboz Plugin for Eclipse.

      Our simple Testapplication works with Clustered JBoss and we can see that the TreeCache replicates all Datas correctly between them.
      But we want to do a simple Hot-Deploying of our jar on only one JBoss-Node. So we changed farm-service.xml (in Directory all/deploy/deploy.last) to following:

      <attribute name="URLs">
       farm/, ./deploy/HartterJ2EE/
       </attribute>
      


      We deploy our Jar into Directory all/deploy/HartterJ2EE but Deploying is only done on the local Server, on the second one we got the Message:

      15:26:49,959 INFO [FarmMemberService] doUndeployment(), File: HartterJ2EE/MyBank.jar
      15:26:49,959 INFO [FarmMemberService] farmUndeployment(), removed fileD:\ApplicationServer\jboss-3.2.3\server\all\deploy\HartterJ2EE\MyBank.jar
      15:26:49,969 INFO [UNICAST] [nbpaar:1909 (additional data: 16 bytes)] --> DATA(NBMAHA:3792 (additional data: 14 bytes): #74, first=false)
      15:26:50,460 INFO [UNICAST] [nbpaar:1909 (additional data: 16 bytes)] --> DATA(NBMAHA:3792 (additional data: 14 bytes): #75, first=false)
      15:26:50,520 INFO [FRAG] assembled_msg is [dst: , src: (1 headers), size = 35092 bytes]
      15:26:50,530 WARN [DefaultPartition] RpcProtocol.Handle(): java.lang.ClassNotFoundException: org.jboss.ha.framework.server.FarmMemberServiceMBean$FileContent
      15:26:50,530 INFO [UNICAST] [nbpaar:1909 (additional data: 16 bytes)] --> DATA(NBMAHA:3792 (additional data: 14 bytes): #76, first=false)
      15:26:52,263 INFO [FD] received ack from NBMAHA:3792 (additional data: 14 bytes)


      But I had to inform that during starting up the Server we received this Exception:


      15:21:57,285 INFO [MainDeployer] deployment waiting for deployer: file:/D:/Prod/WebServer/jboss-3.2.3/server/all/deploy/jboss-net.sar/jboss-net.war/
      15:21:57,285 INFO [MainDeployer] deployment waiting for deployer: file:/D:/Prod/WebServer/jboss-3.2.3/server/all/deploy/jboss-net.sar/jmx-net.wsr/
      15:21:57,335 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      15:21:57,335 ERROR [MainDeployer] could not create deployment: file:/D:/Prod/WebServer/jboss-3.2.3/server/all/deploy/jboss-net.sar/
      org.jboss.deployment.DeploymentException: create operation failed for package file:/D:/Prod/WebServer/jboss-3.2.3/server/all/deploy/jboss-net.sar/; - nested throwable: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException))
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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(Unknown Source)
      Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      ... 49 more
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:181)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:151)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
      ... 59 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/net/axis/Deployment
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
      at java.lang.Class.getConstructor0(Unknown Source)
      at java.lang.Class.getConstructor(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:846)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:291)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:318)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
      ... 61 more


      This is our Lomboz-Configuration for the Server:
      <serverClassPath>
       <jar type="variable">JDK_TOOLS</jar>
       <jar type="variable">${classPathVariableName}/bin/run.jar</jar>
       <jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/javax.servlet.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
       <jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jdom.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xercesImpl.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xml-apis.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/getopt.jar</jar>
       <jar type="absolute">U:/jboss-cache/lib/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/webdavlib.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/log4j-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-jmx.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-common.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/commons-logging.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/commons-httpclient.jar</jar>
       <jar type="absolute">U:/jboss-cache/lib/jgroups.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jacorb.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-iiop.jar</jar>
       <jar type="absolute">U:/jboss-cache/lib/jboss-cache.jar</jar>
      </serverClassPath>
      



      Has anyone any Idea about whats going wrong?

      We have also a different behaviour between starting JBoss from Lomboz or via Startscript ( "run -c all" ). Why this?
      In second case we have no (axis)-Exception during startup-Phase but farming still doesn't work.