1 Reply Latest reply on Jun 6, 2007 10:31 AM by Rajesh Chande

    can deployment on 2nd instance cause a undeploy on the first

    Rajesh Chande Newbie

      Hello,

      JBoss: 4.0.3SP1
      OS: Solaris 10
      JDK: 5

      I have two Jboss instances setup in a cluster fine in all respectes running fine. The farm deployment is working fine. But off late I observe one issue. The details of the issue are as follows. Whenever I deploy a WAR file on the first instance, it gets successfully deployed

      Output from first instance after deployment of WAR file :

      ######################

      2007/06/06 14:11:41 | 14:11:41,783 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' from JNDI name 'java:aaa'
      2007/06/06 14:11:42 | 14:11:42,017 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' to JNDI name 'java:aaa'
      2007/06/06 14:11:56 | 14:11:56,048 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp50909aaa.war/
      2007/06/06 14:11:56 | 14:11:56,057 INFO [JBossCacheManager] Stopping JBossManager
      2007/06/06 14:11:56 | 14:11:56,888 INFO [STDOUT] 14:11:56,888 DEBUG [Log4JServlet] Logging initialized
      2007/06/06 14:11:57 | 14:11:56,906 INFO [[/]] No Configuration for this context. Initializing.
      2007/06/06 14:11:57 | 14:11:56,906 INFO [[/]] configuring cewolf app..
      2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] using storage class de.laures.cewolf.storage.TransientSessionStorage
      2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] using overlibURL scripts/overlib.js
      2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] debugging is turned on
      2007/06/06 14:11:57 | 14:11:56,913 INFO [[/]] ...done.
      2007/06/06 14:11:57 | 14:11:57,498 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
      2007/06/06 14:11:57 | 14:11:57,530 INFO [JBossCacheManager] Starting JBossManager
      2007/06/06 14:11:57 | 14:11:57,536 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve.
      ######################

      Output from second instance after deployment of WAR file :

      ######################

      2007/06/06 14:12:42 | 14:12:42,645 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' from JNDI name 'java:aaa'
      2007/06/06 14:12:43 | 14:12:43,259 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' to JNDI name 'java:aaa'
      2007/06/06 14:17:43 | 14:17:43,019 INFO [FarmMemberService] farmDeployment(), deploy locally: farm/aaa.war
      2007/06/06 14:17:57 | 14:17:57,029 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../tmp/deploy/tmp62007aaa.war/
      2007/06/06 14:18:03 | 14:18:03,810 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp62009aaa.war/
      2007/06/06 14:18:03 | 14:18:03,837 INFO [JBossCacheManager] Stopping JBossManager
      2007/06/06 14:18:07 | 14:18:07,026 INFO [STDOUT] 14:18:07,026 DEBUG [Log4JServlet] Logging initialized
      2007/06/06 14:18:07 | 14:18:07,063 INFO [[/]] No Configuration for this context. Initializing.
      2007/06/06 14:18:07 | 14:18:07,064 INFO [[/]] configuring cewolf app..
      2007/06/06 14:18:07 | 14:18:07,079 INFO [[/]] using storage class de.laures.cewolf.storage.TransientSessionStorage
      2007/06/06 14:18:07 | 14:18:07,079 INFO [[/]] using overlibURL scripts/overlib.js
      2007/06/06 14:18:07 | 14:18:07,080 INFO [[/]] debugging is turned on
      2007/06/06 14:18:07 | 14:18:07,080 INFO [[/]] ...done.
      2007/06/06 14:18:08 | 14:18:08,344 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
      2007/06/06 14:18:08 | 14:18:08,436 INFO [JBossCacheManager] Starting JBossManager
      2007/06/06 14:18:08 | 14:18:08,447 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve

      ######################

      As soon as after the above output in the second instance, the first instance undeploys the WAR file deployed few minutes earlier with following output.

      ######################

      2007/06/06 14:17:57 | 14:17:57,666 INFO [FarmMemberService] doUndeployment(), File: farm/aaa.war
      2007/06/06 14:17:57 | 14:17:57,679 INFO [FarmMemberService] farmUndeployment(), removed file/apps/jboss/4.0.3sp1/server/devl-01/farm/aaa.war
      2007/06/06 14:18:43 | 14:18:43,038 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../tmp/deploy/tmp50909aaa.war/

      ######################

      Can anybody help me understand better, whats going on here? and how to avoid this undeployment?

      Is the second instance triggering this undeployment? How to stop that?