Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23963

Missing support for Connector 2.1 (Jakarta EE 10) in Ironjacamar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Beta-CR1, 8.0.0.Beta
    • None
    • JCA
    • None

      Ironjacamar supports Connector only up to version 2.0 (Jakarata EE 9). It should also support Connector 2.1 (Jakarata EE 10)
      Probably missing Connector 2.1 equivalent of  this enum: https://github.com/ironjacamar/ironjacamar/blob/main/common/impl/src/main/java/org/jboss/jca/common/metadata/spec/XML.java#L1075-L1078

      Deployment of resource adapter rar fails when parsing deployment descriptor ra.xml which is using connector 2.1.

      Error message:

      WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services {"jboss.deployment.unit.\"test-resource-adapter.rar\".PARSE" => "WFLYSRV0153: Failed to process phase PARSE of deployment \"test-resource-adapter.rar\" Caused by: [org.jboss.as|http://org.jboss.as/].server.deployment.DeploymentUnitProcessingException: WFLYJCA0043: Failed to parse service xml [\"/content/test-resource-adapter.rar/META-INF/ra.xml\"] Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: resourceadapter-version}}}
      

       

      Example of ra.xml file causing deployment to fail:

      <?xml version="1.0" encoding="UTF-8"?>
      <connector xmlns="https://jakarta.ee/xml/ns/jakartaee" version="2.1">
        <display-name>JBossTS Test Resource Adapter</display-name>
        <vendor-name>JBoss EAP QE</vendor-name>
        <eis-type>Test RA</eis-type>
        <resourceadapter-version>1.0</resourceadapter-version>
        <resourceadapter>
          <resourceadapter-class>org.jboss.as.test.jbossts.crashrec.jca.rar.TestResourceAdapter</resourceadapter-class>
          <inbound-resourceadapter>
            <messageadapter>
              <messagelistener>
                <messagelistener-type>jakarta.jms.MessageListener</messagelistener-type>
                <activationspec>
                  <activationspec-class>org.jboss.as.test.jbossts.crashrec.jca.rar.TestResourceActivationSpec</activationspec-class>
                </activationspec>
              </messagelistener>
            </messageadapter>
          </inbound-resourceadapter>
          <config-property>
            <config-property-name>portNumber</config-property-name>
            <config-property-type>java.lang.String</config-property-type>
          </config-property>
        </resourceadapter>
      </connector>

              thofman Tomas Hofman
              ogerzica@redhat.com Ondrej Gerzicak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: