Uploaded image for project: 'JBoss Enterprise Application Platform 6'
  1. JBoss Enterprise Application Platform 6
  2. JBPAPP6-421

JCA 1.5 is not supported within RAR deployments - broken compatibility

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: EAP 6.0.0 ER 1
    • Fix Version/s: EAP 6.0.0 ER 4
    • Component/s: JCA
    • Labels:
      None

      Description

      Deployment of JCA 1.5 RAR archives is not supported.

      Archive content is check for JCA 1.6 implementation and thus fails.

      17:06:15,395 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7)
      JBAS015876: Starting deployment of "spring-jmx-rar.rar"
      17:06:16,075 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2)
      MSC000001: Failed to start service jboss.ra.deployer.spring-jmx-rar:
      org.jboss.msc.service.StartException in service
      jboss.ra.deployer.spring-jmx-rar: JBAS010446: Failed to start RA deployment
      [spring-jmx-rar]
      at
      org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:103)
      at
      org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
      at
      org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
      at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      [rt.jar:1.6.0_22]
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      [rt.jar:1.6.0_22]
      at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment
      failed:
      file:/home/trepel/sources/wfk-qa/build/configuration/../../../jboss-eap-6.0/standalone/tmp/vfs/temp8ccd62028aaee21d/content-e4ed920691b864aa/contents/
      at
      org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2167)
      at
      org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1030)
      at
      org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:172)
      at
      org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:101)
      ... 5 more
      Caused by: org.jboss.jca.validator.ValidatorException: Severity: ERROR
      Section: 19.4.2
      Description: A ResourceAdapter must implement a "public boolean equals(Object)"
      method.
      Code: org.springframework.jca.context.SpringContextResourceAdapter

      Severity: ERROR
      Section: 19.4.2
      Description: A ResourceAdapter must implement a "public int hashCode()" method.
      Code: org.springframework.jca.context.SpringContextResourceAdapter

      ... 9 more

      17:06:16,108 INFO [org.jboss.as.server] (management-handler-threads - 2)
      JBAS015870: Deploy of deployment "spring-jmx-rar.rar" was rolled back with
      failure message {"JBAS014671: Failed services" =>
      {"jboss.ra.deployer.spring-jmx-rar" => "org.jboss.msc.service.StartException in
      service jboss.ra.deployer.spring-jmx-rar: JBAS010446: Failed to start RA
      deployment [spring-jmx-rar]"}}
      17:06:16,110 INFO [org.jboss.as.controller] (management-handler-threads - 2)
      JBAS014774: Service status report
      JBAS014777: Services which failed to start: service
      jboss.ra.deployer.spring-jmx-rar: org.jboss.msc.service.StartException in
      service jboss.ra.deployer.spring-jmx-rar: JBAS010446: Failed to start RA
      deployment [spring-jmx-rar]

      However, spec JCA 1.5 requires ResourceAdaptor to fulfill Java Bean contract, not to implement equals() or hashCode().

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kpiwko Karel Piwko
                Reporter:
                kpiwko Karel Piwko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: