0 Replies Latest reply on Dec 27, 2013 6:18 PM by Maciej Stachurski

    Failing deployment of EAR containing inbound RAR-MDB pair

    Maciej Stachurski Newbie

      I've been developing an enterprise application (packaged in EAR file) which contains inbound resource adapter (packaged in RAR file), and message-driven bean (packaged in EJB JAR file) using this adapter. Unfortunately, I'm unable to deploy such EAR in JBoss 7.1.1 due to missing dependencies:

      23:25:52,217 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "jca-test-ear.ear"
      23:25:52,296 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "jca-test-rar.rar"
      23:25:52,297 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "jca-test-ejb.jar"
      23:25:52,764 INFO  [org.jboss.as.server] (HttpManagementService-threads - 4) JBAS015870: Deploy of deployment "jca-test-ear.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"jca-test-ear.ear\".\"jca-test-ejb.jar\".component.MessageListenerMDB.CREATEjboss.ra.\"deployment.jca-test-ear.ear.jca-test-rar\"Missing[jboss.deployment.subunit.\"jca-test-ear.ear\".\"jca-test-ejb.jar\".component.MessageListenerMDB.CREATEjboss.ra.\"deployment.jca-test-ear.ear.jca-test-rar\"]"]}
      23:25:52,779 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment jca-test-ejb.jar in 13ms
      23:25:52,785 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment jca-test-rar.rar in 19ms
      23:25:52,790 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment jca-test-ear.ear in 26ms
      23:25:52,792 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 4) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.ra."deployment.jca-test-ear.ear.jca-test-rar" (missing) dependents: [service jboss.deployment.subunit."jca-test-ear.ear"."jca-test-ejb.jar".component.MessageListenerMDB.CREATE]


      Does anybody know whether such a configuration is supported by JBoss 7.1.1? I could imagine that EAR's subdeployments are not available until EAR deployment completes, but I'd need expert opinion on this...

      On the other hand, if such configuration is allowed then (as you might have guessed ), I'll be interested in a solution that will allow to deploy my EAR successfully.

      PS. In attachment you can find a dummy implementation of failing scenario as a Maven project, including the deployment to embedded JBoss using jboss-as-maven-plugin (just run mvn clean install -Pjboss in root of Maven project from archive). Please note that erroneous behavior is not related to embedded JBoss only, same outcome is observed in standalone server.