3 Replies Latest reply on Feb 27, 2006 2:49 PM by Srinivasan Sangameswara

    Troubles with EAR deployement containing RAR

    Xavier GALLERI Newbie

      Hi,

      I want to deploy an EAR that contains both a RAR and an EJB-JAR that depends on it. I use the maven 2 EAR plugin to build the .ear file. Then, I drop this file into my JBoss (4.0.3SP1) deploy dir and I got the following error trace on the console:

      [...]
      09:19:11,864 INFO [EARDeployer] Init J2EE application: file:/D:/programs/JBoss/4.0.3SP1/server/default/deploy/ird-pricer-j2ee-teste
      r-0.1-SNAPSHOT.ear
      09:19:12,286 INFO [EjbModule] Deploying ejb/WAXTesterEJB
      09:19:12,442 INFO [STDOUT] WAXResourceAdapter/start org.jboss.resource.deployment.RARDeployment@b27c38
      09:19:12,489 INFO [ProxyFactory] Bound EJB Home 'ejb/WAXTesterEJB' to jndi 'ejb/WAXTesterEJB'
      09:19:12,489 INFO [EJBDeployer] Deployed: file:/D:/programs/JBoss/4.0.3SP1/server/default/tmp/deploy/tmp54436ird-pricer-j2ee-tester
      -0.1-SNAPSHOT.ear-contents/ird-pricer-wax-tester-ejb-0.1-SNAPSHOT.jar
      09:19:12,520 INFO [EARDeployer] Started J2EE application: file:/D:/programs/JBoss/4.0.3SP1/server/default/deploy/ird-pricer-j2ee-te
      ster-0.1-SNAPSHOT.ear
      09:19:12,520 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.jca:name=jca/WAXRA,service=NoTxCM
      State: CONFIGURED
      I Depend On:
      jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool
      jboss.jca:service=CachedConnectionManager
      Depends On Me:
      jboss.jca:name=jca/WAXRA,service=ConnectionFactoryBinding

      ObjectName: jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool
      State: CONFIGURED
      I Depend On:
      jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
      Depends On Me:
      jboss.jca:name=jca/WAXRA,service=NoTxCM

      ObjectName: jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
      State: CONFIGURED
      I Depend On:
      jboss.jca:name='ird-pricer-wax-ra-0.1-SNAPSHOT.rar',service=RARDeployment
      Depends On Me:
      jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool

      ObjectName: jboss.jca:name=jca/WAXRA,service=ConnectionFactoryBinding
      State: CONFIGURED
      I Depend On:
      jboss.jca:name=jca/WAXRA,service=NoTxCM

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name='ird-pricer-wax-ra-0.1-SNAPSHOT.rar',service=RARDeployment
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
      [...]

      I have tested that my RAR and EJB-JAR are ok by dropping them independently (no EAR) into the deploy dir and it works. I'm wondering if the problem is not coming from a bad dependency handling during EAR deployment, since I guess that the RAR file should be deployed prior to the EJB-JAR to get everything ok...

      Any suggestions are welcome...

      Thx in advance,
      -Xavier

        • 2. Re: Troubles with EAR deployement containing RAR
          Srinivasan Sangameswara Newbie

          Hi I get the same problem while deploying with an EAR but only in the clustered mode. Did you find a solution to your problem. If so would you please let me know of the same.

          Thanks
          srini

          "xgalleri" wrote:
          Hi,

          I want to deploy an EAR that contains both a RAR and an EJB-JAR that depends on it. I use the maven 2 EAR plugin to build the .ear file. Then, I drop this file into my JBoss (4.0.3SP1) deploy dir and I got the following error trace on the console:

          [...]
          09:19:11,864 INFO [EARDeployer] Init J2EE application: file:/D:/programs/JBoss/4.0.3SP1/server/default/deploy/ird-pricer-j2ee-teste
          r-0.1-SNAPSHOT.ear
          09:19:12,286 INFO [EjbModule] Deploying ejb/WAXTesterEJB
          09:19:12,442 INFO [STDOUT] WAXResourceAdapter/start org.jboss.resource.deployment.RARDeployment@b27c38
          09:19:12,489 INFO [ProxyFactory] Bound EJB Home 'ejb/WAXTesterEJB' to jndi 'ejb/WAXTesterEJB'
          09:19:12,489 INFO [EJBDeployer] Deployed: file:/D:/programs/JBoss/4.0.3SP1/server/default/tmp/deploy/tmp54436ird-pricer-j2ee-tester
          -0.1-SNAPSHOT.ear-contents/ird-pricer-wax-tester-ejb-0.1-SNAPSHOT.jar
          09:19:12,520 INFO [EARDeployer] Started J2EE application: file:/D:/programs/JBoss/4.0.3SP1/server/default/deploy/ird-pricer-j2ee-te
          ster-0.1-SNAPSHOT.ear
          09:19:12,520 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

          --- MBeans waiting for other MBeans ---
          ObjectName: jboss.jca:name=jca/WAXRA,service=NoTxCM
          State: CONFIGURED
          I Depend On:
          jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool
          jboss.jca:service=CachedConnectionManager
          Depends On Me:
          jboss.jca:name=jca/WAXRA,service=ConnectionFactoryBinding

          ObjectName: jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool
          State: CONFIGURED
          I Depend On:
          jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
          Depends On Me:
          jboss.jca:name=jca/WAXRA,service=NoTxCM

          ObjectName: jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
          State: CONFIGURED
          I Depend On:
          jboss.jca:name='ird-pricer-wax-ra-0.1-SNAPSHOT.rar',service=RARDeployment
          Depends On Me:
          jboss.jca:name=jca/WAXRA,service=ManagedConnectionPool

          ObjectName: jboss.jca:name=jca/WAXRA,service=ConnectionFactoryBinding
          State: CONFIGURED
          I Depend On:
          jboss.jca:name=jca/WAXRA,service=NoTxCM

          --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
          ObjectName: jboss.jca:name='ird-pricer-wax-ra-0.1-SNAPSHOT.rar',service=RARDeployment
          State: NOTYETINSTALLED
          Depends On Me:
          jboss.jca:name=jca/WAXRA,service=ManagedConnectionFactory
          [...]

          I have tested that my RAR and EJB-JAR are ok by dropping them independently (no EAR) into the deploy dir and it works. I'm wondering if the problem is not coming from a bad dependency handling during EAR deployment, since I guess that the RAR file should be deployed prior to the EJB-JAR to get everything ok...

          Any suggestions are welcome...

          Thx in advance,
          -Xavier