Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

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: JCAAssignee: Jesper Pedersen <jpederse>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: 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:
Description Flags
spring-jmx-rar.rar none

Description Karel Piwko 2011-10-03 10:12:25 UTC
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}

Comment 1 Karel Piwko 2011-10-03 10:12:26 UTC
Link: Added: This issue Cloned from AS7-1990


Comment 2 Karel Piwko 2011-10-03 10:13:20 UTC
Workflow: Removed: GIT Pull Request workflow  Added: jira
Security: Added: Public
Docs QE Status: Added: NEW


Comment 3 Karel Piwko 2011-10-03 10:13:44 UTC
Docs QE Status: Removed: NEW 


Comment 5 Karel Piwko 2011-10-03 10:15:46 UTC
Attachment: Added: spring-jmx-rar.rar


Comment 6 Jesper Pedersen 2011-10-03 11:38:09 UTC
There is no support on prereleases of EAP 6.

The ra.xml is invalid.

Comment 9 Jesper Pedersen 2011-10-04 12:09:20 UTC
You need to add an outbound or inbound configuration to the ra.xml

Comment 10 Karel Piwko 2011-10-07 12:36:34 UTC
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? 

Comment 11 RH Bugzilla Integration 2011-10-10 16:55:59 UTC
Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=744856


Comment 12 RH Bugzilla Integration 2011-10-10 16:56:00 UTC
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

Comment 13 Jesper Pedersen 2011-10-11 17:15:43 UTC
Link: Added: This issue is related to JBJCA-680


Comment 14 Jesper Pedersen 2011-10-11 17:16:38 UTC
Ah, the resource adapter doesn't contain any outbound / inbound classes. Fixed in JBJCA-680.

Comment 15 Jesper Pedersen 2011-10-20 16:28:46 UTC
Try AS7 master

Comment 16 Paul Gier 2011-11-20 19:02:54 UTC
Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=744856 Added: https://bugzilla.redhat.com/show_bug.cgi?id=744856


Comment 17 Karel Piwko 2011-11-21 17:25:36 UTC
Verified that EAR can be deployed on DR6.

Comment 18 RH Bugzilla Integration 2011-11-21 17:28:01 UTC
Karel Piwko <kpiwko> changed the Status of [bug 744856|https://bugzilla.redhat.com/show_bug.cgi?id=744856] from NEW to CLOSED

Comment 19 RH Bugzilla Integration 2011-11-21 17:28:02 UTC
Karel Piwko <kpiwko> made a comment on [bug 744856|https://bugzilla.redhat.com/show_bug.cgi?id=744856]

Fixed in EAP DR06 release.

Comment 20 Anne-Louise Tangring 2012-11-05 02:46:20 UTC
Fixing Affects and Fix in Version