Migrating Resource Adapter from JBoss 6 to WildFly
simas_ch Oct 29, 2013 9:49 AMHi,
I tried to migrate a resource adapter currently running on JBoss 6.1.0 to WildFly.
But I get an error:
2013-10-29 14:42:24,466 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-2) IJ020004: Only one connection definition found with a mismatch in class-name: com.prodega.proshop.integration.IODataSource
2013-10-29 14:42:24,469 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.ra.deployment."ProShopUniversalConnector.rar": org.jboss.msc.service.StartException in service jboss.ra.deployment."ProShopUniversalConnector.rar": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [ProShopUniversalConnector]
at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:135)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [ProShopUniversalConnector]
at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:120)
... 5 more
Caused by: org.jboss.jca.deployers.common.DeployException: com.prodega.proshop.integration.spi.GenericManagedConnectionFactory not a valid connection definition
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.findConnectionDefinitions(AbstractResourceAdapterDeployer.java:479)
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1908)
at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:191)
at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:113)
... 5 more
2013-10-29 14:42:24,534 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "ProShopUniversalConnector.rar")]) - failure description: {"JBAS014671: Failed services" => {"jboss.ra.deployment.\"ProShopUniversalConnector.rar\"" => "org.jboss.msc.service.StartException in service jboss.ra.deployment.\"ProShopUniversalConnector.rar\": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [ProShopUniversalConnector]
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [ProShopUniversalConnector]
Caused by: org.jboss.jca.deployers.common.DeployException: com.prodega.proshop.integration.spi.GenericManagedConnectionFactory not a valid connection definition"}}
The old configuration was
<connection-factories>
<tx-connection-factory>
<jndi-name>jca/IOConnector</jndi-name>
<xa-transaction />
<rar-name>ProShopUniversalConnector.rar</rar-name>
<connection-definition>com.prodega.proshop.integration.IODataSource</connection-definition>
</tx-connection-factory>
</connection-factories>
The new in WildFly:
<resource-adapter id="ProShopUniversalConnector.rar">
<archive>
ProShopUniversalConnector.rar
</archive>
<transaction-support>XATransaction</transaction-support>
<connection-definitions>
<connection-definition class-name="com.prodega.proshop.integration.IODataSource" jndi-name="jca/IOConnector" pool-name="IOConnector"/>
</connection-definitions>
</resource-adapter>
Thanks for your help.
Simon