Resource adapter not able to configure in JBOSS 6.4 EAP
shan_ac Sep 14, 2015 8:14 PMI am doing jboss upgrade/migration form 4.x(current production verstion) to 6.4 EAP and currently production running with same setup.
But when I am configuring in JBoss 6.4 EAP I am getting following error.
ironjacamar.xml(generated through ironjacamar rar-info)
<ironjacamar> <config-property name="LogDirectory">jracLogs</config-property> <config-property name="ConnectionMonitorEnabled">false</config-property> <config-property name="ConnectionMonitorFrequency">60</config-property> <config-property name="TraceLevel">Error</config-property> <config-property name="LogFile">resourceAdapter.log</config-property> <transaction-support>NoTransaction</transaction-support> <connection-definitions> <connection-definition class-name="com.unisys.coms.connector.COMSManagedConnectionFactory" enabled="true" jndi-name="java:jboss/eis/JracRa/Testlink" pool-name="JracRa/Testlink" use-ccm="true" use-java-context="true"> <config-property name="AuthenticationType">Challenge</config-property> <config-property name="StationNamePrefix">JAVAMETA</config-property> <config-property name="ConnectionMonitorEnabled">false</config-property> <config-property name="ConnectionMonitorFrequency">60</config-property> <config-property name="PortNumber"> 37822 </config-property> <config-property name="ServerName"> servername </config-property> <config-property name="WindowName"> testwind </config-property> <config-property name="UserName"> test </config-property> <config-property name="Password"> test </config-property> <config-property name="TraceLevel">Error</config-property> <config-property name="DiscardOpenWindowNotification">false</config-property> <config-property name="ExecutionTimeout">60000</config-property> <pool> <min-pool-size>0</min-pool-size> <max-pool-size>10</max-pool-size> <prefill>false</prefill> <use-strict-min>false</use-strict-min> <flush-strategy>FailingConnectionOnly</flush-strategy> </pool> <security> <application/> </security> </connection-definition> </connection-definitions> </ironjacamar>
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"> <display-name>MCP Connector</display-name> <vendor-name>Unisys Corporation.</vendor-name> <eis-type>ClearPath MCP</eis-type> <resourceadapter-version>11.0</resourceadapter-version> <resourceadapter> <resourceadapter-class> com.unisys.coms.connector.COMSResourceAdapter </resourceadapter-class> <!-- These various config-property sections are the default for the ResourceAdapter --> <config-property> <config-property-name>LogDirectory</config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value>jracLogs</config-property-value> </config-property> <config-property> <config-property-name>LogFile</config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value> resourceAdapter.log </config-property-value> </config-property> <!-- Set to Error for production Switch to Debug for additional details in development --> <config-property> <config-property-name>TraceLevel</config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value>Error</config-property-value> </config-property> <!-- ConnectionMonitorEnabled and ConnectionMonitorFrequency also need to be included in outbound-resourceadapter Set ConnectionMonitorEnabled to false for timeout workaround --> <config-property> <config-property-name> ConnectionMonitorEnabled </config-property-name> <config-property-type> java.lang.Boolean </config-property-type> <config-property-value>false</config-property-value> </config-property> <config-property> <config-property-name> ConnectionMonitorFrequency </config-property-name> <config-property-type> java.lang.Integer </config-property-type> <config-property-value>60</config-property-value> </config-property> <!-- outbound-resourceadapter defines all the properties for the connection to the Unisys mainframe via Jrac config-property sections are configurable, but the rest should not be touched --> <outbound-resourceadapter> <connection-definition> <managedconnectionfactory-class> com.unisys.coms.connector.COMSManagedConnectionFactory </managedconnectionfactory-class> <config-property> <config-property-name> TraceLevel </config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value>Error</config-property-value> </config-property> <config-property> <config-property-name> ExecutionTimeout </config-property-name> <config-property-type> java.lang.Integer </config-property-type> <config-property-value>60000</config-property-value> </config-property> <config-property> <config-property-name> DiscardOpenWindowNotification </config-property-name> <config-property-type> java.lang.Boolean </config-property-type> <config-property-value>false</config-property-value> </config-property> <config-property> <config-property-name> AuthenticationType </config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value> Challenge </config-property-value> </config-property> <config-property> <config-property-name> StationNamePrefix </config-property-name> <config-property-type> java.lang.String </config-property-type> <config-property-value> JAVAMETA </config-property-value> </config-property> <!-- Set to false for timeout workaround --> <config-property> <config-property-name> ConnectionMonitorEnabled </config-property-name> <config-property-type> java.lang.Boolean </config-property-type> <config-property-value>false</config-property-value> </config-property> <config-property> <config-property-name> ConnectionMonitorFrequency </config-property-name> <config-property-type> java.lang.Integer </config-property-type> <config-property-value>60</config-property-value> </config-property> <connectionfactory-interface> javax.resource.cci.ConnectionFactory </connectionfactory-interface> <connectionfactory-impl-class> com.unisys.coms.connector.COMSConnectionFactory </connectionfactory-impl-class> <connection-interface> javax.resource.cci.Connection </connection-interface> <connection-impl-class> com.unisys.coms.connector.COMSConnection </connection-impl-class> </connection-definition> <transaction-support>NoTransaction</transaction-support> <authentication-mechanism> <authentication-mechanism-type> BasicPassword </authentication-mechanism-type> <credential-interface> javax.resource.spi.security.PasswordCredential </credential-interface> </authentication-mechanism> <reauthentication-support>false</reauthentication-support> </outbound-resourceadapter> </resourceadapter> </connector>
Exception
18:17:20,795 TRACE [org.jboss.modules] (ServerService Thread Pool -- 53) Class org.jboss.msc.service.ServiceControllerImpl$StartTask not found from Module "org.jboss.logmanager:main" from local module loader @26b084a6 (finder: local module finder @ed4c222 (roots: C:\JavaDev\servers\JBoss EAP_6.4.0_web\modules,C:\JavaDev\servers\JBoss EAP_6.4.0_web\modules\system\layers\base)) 18:17:20,788 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 53) MSC000001: Failed to start service jboss.ra.deployer."unisys-jrac-connector-3.0.0": org.jboss.msc.service.StartException in service jboss.ra.deployer."unisys-jrac-connector-3.0.0": JBAS010446: Failed to start RA deployment [unisys-jrac-connector-3.0.0] at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$1.run(ResourceAdapterDeploymentService.java:159) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] at org.jboss.threads.JBossThread.run(JBossThread.java:122) Caused by: org.jboss.jca.deployers.common.DeployException: IJ020052: Unable to associate com.unisys.coms.connector.COMSManagedConnectionFactory at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.associateResourceAdapter(AbstractResourceAdapterDeployer.java:387) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1] at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1990) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1] at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1153) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1] at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:221) at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:113) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45] at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.associateResourceAdapter(AbstractResourceAdapterDeployer.java:383) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1] ... 9 more Caused by: javax.resource.spi.ResourceAdapterInternalException: ResourceAdapter not started, error code: ERROR-RA-002 at com.unisys.coms.connector.COMSResourceAdapter.addManagedConnectionFactory(COMSResourceAdapter.java:733) [jrac-11.0.10.jar:] at com.unisys.coms.connector.COMSManagedConnectionFactory.setResourceAdapter(COMSManagedConnectionFactory.java:1986) [jrac-11.0.10.jar:] ... 14 more