Bug 899531 (JBPAPP6-142)
| Summary: | Regression in ra.xml loading - required in/outbound configuration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Karel Piwko <kpiwko> | ||||
| Component: | JCA | Assignee: | Jesper Pedersen <jpederse> | ||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | atangrin, jpederse, kpiwko, no-reply | ||||
| Target Milestone: | --- | ||||||
| Target Release: | EAP 6.0.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | http://jira.jboss.org/jira/browse/JBPAPP6-142 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-11-05 02:46:55 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Link: Added: This issue Cloned from AS7-1990 Workflow: Removed: GIT Pull Request workflow Added: jira Security: Added: Public Docs QE Status: Added: NEW Docs QE Status: Removed: NEW Attachment: Added: spring-jmx-rar.rar There is no support on prereleases of EAP 6. The ra.xml is invalid. Ra.xml is valid with respect to Spring configuration, available at http://static.springsource.org/spring/docs/2.5.5/api/org/springframework/jca/context/SpringContextResourceAdapter.html or here for 3.0.6: http://www.jarvana.com/jarvana/view/org/springframework/spring-tx/3.0.6.RELEASE/spring-tx-3.0.6.RELEASE-sources.jar!/org/springframework/jca/context/SpringContextResourceAdapter.java?format=ok You need to add an outbound or inbound configuration to the ra.xml I went through connector-1.5 and connector-1.6 xsds, neither of them says that inbound-resourceadapter or outbound-resourceadapter is mandatory. I additionally downloaded ironjacamar 1.0.0.Final and 1.1.0.Alpha2 and sucessfully validated attached rar example with an utility distributed in docs/validator. If I read the JCA spec correctly, outbound/inbound resourceadapters are used to connect application distributed in RAR with the outside world. They are not required if the application wants to be deployed standalone on AS. Isn't AS7 more strict than spec in this case? Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=744856 Karel Piwko <kpiwko> made a comment on [bug 744856|https://bugzilla.redhat.com/show_bug.cgi?id=744856] Tracking for https://issues.jboss.org/browse/JBPAPP-7331 Link: Added: This issue is related to JBJCA-680 Ah, the resource adapter doesn't contain any outbound / inbound classes. Fixed in JBJCA-680. Try AS7 master Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=744856 Added: https://bugzilla.redhat.com/show_bug.cgi?id=744856 Verified that EAR can be deployed on DR6. Karel Piwko <kpiwko> changed the Status of [bug 744856|https://bugzilla.redhat.com/show_bug.cgi?id=744856] from NEW to CLOSED Karel Piwko <kpiwko> made a comment on [bug 744856|https://bugzilla.redhat.com/show_bug.cgi?id=744856] Fixed in EAP DR06 release. Fixing Affects and Fix in Version |
project_key: JBPAPP6 There is a regression from EAP5 support of ra.xml descriptor inside of a RAR archive. Suppose following META-INF/ra.xml {code:xml} <?xml version="1.0" encoding="UTF-8"?> <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5"> <vendor-name>Spring Framework</vendor-name> <eis-type>Spring Connector</eis-type> <resourceadapter-version>1.0</resourceadapter-version> <resourceadapter> <resourceadapter-class>org.springframework.jca.context.SpringContextResourceAdapter</resourceadapter-class> <config-property> <config-property-name>ContextConfigLocation</config-property-name> <config-property-type>java.lang.String</config-property-type> <config-property-value>META-INF/applicationContext.xml</config-property-value> </config-property> </resourceadapter> </connector> {code} This will fail on AS7 with following exception, however it was working with JBoss 5: {code} 11:58:46,719 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."spring-jmx-rar.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."spring-jmx-rar.rar".INSTALL: Failed to process phase INSTALL of deployment "spring-jmx-rar.rar" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha1-redhat-1.jar:7.1.0.Alpha1-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_27] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_27] at java.lang.Thread.run(Thread.java:662) [:1.6.0_27] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.jca.common.api.validator.ValidateException: The resource adapter metadata must contain either an outbound or inbound configuration at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:134) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha1-redhat-1.jar:7.1.0.Alpha1-redhat-1] ... 5 more Caused by: org.jboss.jca.common.api.validator.ValidateException: 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:110) ... 6 more 11:58:46,727 INFO [org.jboss.as.server.controller] (pool-1-thread-1) Deployment of "spring-jmx-rar.rar" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"spring-jmx-rar.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"spring-jmx-rar.rar\".INSTALL: Failed to process phase INSTALL of deployment \"spring-jmx-rar.rar\""}} {code}