-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
7.1.0.Alpha1
-
None
There is a regression from EAP5 support of ra.xml descriptor inside of a RAR archive.
Suppose following META-INF/ra.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>
This will fail on AS7 with following exception, however it was working with JBoss 5:
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\""}}
- relates to
-
JBJCA-680 Pure ResourceAdapter class deployment aren't working
- Closed