2 Replies Latest reply on Apr 12, 2013 3:32 AM by gaol

    JCA Resource Adapter Deploy fails on JBOSS AS 7

    daedlus

      have a custom resource adapter to connect to a EIS. My requirement is only outbound connectivity to EIS. I have packaged the rar with iron-jacamr.xml in META-INF but when i deploy i get below error

       

      15:12:47,866 ERROR (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration

          at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:229)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)

          ... 5 more

      Caused by: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration

          at org.jboss.jca.common.metadata.ra.common.ResourceAdapter1516Impl.validate(ResourceAdapter1516Impl.java:333)

          at org.jboss.jca.common.metadata.ra.common.ConnectorAbstractmpl.validate(ConnectorAbstractmpl.java:305)

          at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:136)

          ... 6 more

       

      15:12:48,162 INFO  (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "testConnector.rar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}

      15:12:48,225 INFO  (MSC service thread 1-4) JBAS015877: Stopped deployment testConnector.rar in 63ms

      15:12:48,228 INFO  (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"

       

      15:12:48,234 ERROR (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}}}

       

      My iron-jacamr.xml is as below:

      <?xml version="1.0" encoding="UTF-8"?>
      <ironjacamar>
        <connection-definitions>
          <connection-definition class-name="org.my.MyManagedConnectionFactory" jndi-name="java:/testConnector"></connection-definition>
        </connection-definitions>
      </ironjacamar>
      

       

      I am suspecting some missing configuration but unable to figure out. I have checked the below example and my ra impl is as per the example.

       

      http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#sample_helloworld