3 Replies Latest reply on Feb 2, 2012 9:05 AM by maeste

    RAR deployment fails after upgrading from AS7 nightly build #431 to #486

    r.reimann

      After upgrading to a more current nightly build #486 my RAR deployment that worked fine on #431 and was used to verify the fix for AS7-3375 (see: https://community.jboss.org/message/648144#648144) fails with the following exception:

       

      14:54:19,106 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.example.connector\"Missing[jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.example.connector\"]"]}}}

       

       

      ExampleConnectorBeanRetail is packaged within an ejb-jar inside the same ear as the rar and contains the following reference to the rar:

       

      @Resource(name = "ExampleXMLGateway", mappedName = "java:/eis/com.example.adapter.example.connector", shareable = true, authenticationType = AuthenticationType.CONTAINER)

                private ExampleConnectionFactoryInterface exampleGatewayConnectionFactory;

       

       

      EAR structure:

      example-service.ear
      |
      |____lib
      | |____example-interface.jar
      |____META-INF
      | |____application.xml
      | |____jboss-app.xml
      | |____jboss-deployment-structure.xml
      | |____MANIFEST.MF
      |____example-connector.rar
      | |____META-INF
      | | |____MANIFEST.MF
      | | |____ra.xml
      | |____example-connector-jar.jar
      |____example-service-ejb.jar
      

       

      Opposed to the #431 logs there are no more org.jboss.as.deployment.connector and org.jboss.as.connector.deployers.RaXmlDeployer messages in the #486 logs.

       

      nightly build #431

      14:41:42,997 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015876: Starting deployment of "example-service.ear"
      14:41:44,569 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "example-connector.rar"
      14:41:44,569 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "example-service-ejb.jar"
      14:41:45,056 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-16) JNDI bindings for session bean named ExampleConnectorBeanRetail in deployment unit subdeployment "example-service-ejb.jar" of deployment "example-service.ear" are as follows:
      
      
                java:global/example-service/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:app/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:module/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:global/example-service/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
                java:app/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
                java:module/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
      
      
      14:41:45,268 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-8) JBAS010406: Registered connection factory java:/eis/com.example.adapter.schufa.connector
      14:41:45,270 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8) IJ020002: Deployed: file:/Users/rr/develop/jboss71/standalone/tmp/vfs/deploymenta44be13d8ac45fe6/example-connector.rar-570f24ff7fbeaac5/contents/
      14:41:45,271 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/eis/com.example.adapter.schufa.connector]
      14:41:46,499 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "example-service.ear"
      

       

      nightly build #486

      14:54:16,292 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "example-service.ear"
      14:54:16,703 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "example-connector.rar"
      14:54:16,703 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015876: Starting deployment of "example-service-ejb.jar"
      14:54:17,020 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named ExampleConnectorBeanRetail in deployment unit subdeployment "example-service-ejb.jar" of deployment "example-service.ear" are as follows:
      
      
                java:global/example-service/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:app/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:module/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorRemote
                java:global/example-service/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
                java:app/example-service-ejb/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
                java:module/ExampleConnectorBeanRetail!com.example.adapter.schufa.common.ExampleConnectorLocal
      
      
                14:54:18,974 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "example-service.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.schufa.connector\"Missing[jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.schufa.connector\"]"]}
      14:54:19,082 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment example-service-ejb.jar in 108ms
      14:54:19,084 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment example-connector.rar in 110ms
      14:54:19,088 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015877: Stopped deployment example-service.ear in 114ms
      14:54:19,104 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
                JBAS014775:    New missing/unsatisfied dependencies:
                      service jboss.naming.context.java.eis."com.example.adapter.schufa.connector" (missing) dependents: [service jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGateway] 
                14:54:19,106 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.schufa.connector\"Missing[jboss.naming.context.java.comp.example-service.example-service-ejb.ExampleConnectorBeanRetail.env.ExampleXMLGatewayjboss.naming.context.java.eis.\"com.example.adapter.schufa.connector\"]"]}}}
      

       

      Any kind of advice to workaround the issue would be appreciated.

      Regards

      Robert