[jboss-jira] [JBoss JIRA] (AS7-5934) RAR inside EAR: deployment issues

Marcel Šebek (JIRA) jira-events at lists.jboss.org
Fri Nov 23 12:22:21 EST 2012


    [ https://issues.jboss.org/browse/AS7-5934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736726#comment-12736726 ] 

Marcel Šebek commented on AS7-5934:
-----------------------------------

After a few experiments, I found that in the failing case, the RA deployer is using wrong metadata. If I understand it correctly, jboss reconstructs XML metadata from annotations. In the failing case, in the position of <resourceadapter-class> tag, the string "null" is instead. So providing a tiny ra.xml with this tag only, things start to work. However, this is just a workaround.
                
> RAR inside EAR: deployment issues
> ---------------------------------
>
>                 Key: AS7-5934
>                 URL: https://issues.jboss.org/browse/AS7-5934
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 7.1.4.Final (EAP)
>            Reporter: Marcel Šebek
>            Assignee: Stefano Maestri
>         Attachments: test-ra.zip
>
>
> I'm having troubles with deploying inbound RARs inside EARs. For example, the test ear attached to AS7-5471 is sometimes deployed successfully and sometimes not, it seems that the probability does not depend on the fact whether it is the first deployment or redeployment. The exception is:
> [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."test-ear.ear"."test-rar-2.0.0-SNAPSHOT.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."test-ear.ear"."test-rar-2.0.0-SNAPSHOT.rar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "test-rar-2.0.0-SNAPSHOT.rar" of deployment "test-ear.ear"
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.4.Final-SNAPSHOT.jar:7.1.4.Final-SNAPSHOT]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09]
>         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.NullPointerException
>         at org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:182)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.4.Final-SNAPSHOT.jar:7.1.4.Final-SNAPSHOT]
>         ... 5 more
> Caused by: java.lang.NullPointerException
>         at org.jboss.jca.common.metadata.ra.common.ResourceAdapter1516Impl.validate(ResourceAdapter1516Impl.java:351)
>         at org.jboss.jca.common.metadata.ra.common.ConnectorAbstractmpl.validate(ConnectorAbstractmpl.java:332)
>         at org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:139)
>         ... 6 more
> A bigger project with MDB and @ResourceAdapter annotation sometimes fails (and sometimes not) with the following exception:
> [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."adapter-snmp-ear.ear"."adapter-snmp-ejb.jar".component.InboundMDB.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."adapter-snmp-ear.ear"."adapter-snmp-ejb.jar".component.InboundMDB.CREATE: Failed to start service
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09]
>         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
> Caused by: java.lang.IllegalStateException: JBAS014331: No resource adapter registered with resource adapter name adapter-snmp-ear.ear#adapter-snmp-rar
>         at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:83)
>         at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:89)
>         at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:91)
>         at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.start(MessageDrivenComponentCreateService.java:76)
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>         ... 3 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list