Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5576

JBAS014666: Duplicate resource resource-adapters

XMLWordPrintable

      Hi,
      I'm trying to deploy wmq.jmsra.rar (IBM MQ resource adapter) on wildfly 8.2.0 final. At the time of deployment I'm getting following exception.

      MSC000002: Invocation of listener "org.jboss.as.connector.util.RaServicesFactory$2@46a660f2" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters exception.

      My requirement is that I have to connect to multiple Queue connection factories on multiple hosts. For this I have configured 4 resource adapters which connects to different queue connection factories.

      I have tried with WildFly 8.1 and WildFly 8.2. In both the servers I'm facing the same issue.

      Can anyone suggest me of how to configure this properly.

      Complete configuration for resource adapters and exceptions occurred pasted below.

      Resource adapter configuration in standalone.xml
      <subsystem xmlns="urn:jboss:domain:resource-adapters:2.0">
      <resource-adapters>
      <resource-adapter id="wmq1.jmsra.rar">
      <archive>
      wmq.jmsra.rar
      </archive>
      <transaction-support>NoTransaction</transaction-support>
      <connection-definitions>
      <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/qcf/phptp" enabled="true" pool-name="mqConnectionPHPTPPool">
      <config-property name="port">
      1415
      </config-property>
      <config-property name="hostName">
      192.168.0.247
      </config-property>
      <config-property name="transportType">
      CLIENT
      </config-property>
      <config-property name="queueManager">
      cbp.queue.manager
      </config-property>
      <config-property name="cleanupInterval">
      300000
      </config-property>
      <pool>
      <min-pool-size>1</min-pool-size>
      <max-pool-size>200</max-pool-size>
      <prefill>true</prefill>
      </pool>
      </connection-definition>
      </connection-definitions>
      </resource-adapter>
      <resource-adapter id="wmq.jmsra.rar">
      <archive>
      wmq.jmsra.rar
      </archive>
      <transaction-support>NoTransaction</transaction-support>
      <connection-definitions>
      <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/qcf/ph" enabled="true" pool-name="mqConnectionPHPool">
      <config-property name="port">
      1415
      </config-property>
      <config-property name="hostName">
      192.168.0.247
      </config-property>
      <config-property name="transportType">
      CLIENT
      </config-property>
      <config-property name="cleanupInterval">
      300000
      </config-property>
      <config-property name="queueManager">
      cbp.queue.manager
      </config-property>
      <pool>
      <min-pool-size>1</min-pool-size>
      <max-pool-size>200</max-pool-size>
      <prefill>true</prefill>
      </pool>
      </connection-definition>
      </connection-definitions>
      </resource-adapter>
      <resource-adapter id="wmq.jmsra.rar3">
      <archive>
      wmq.jmsra.rar
      </archive>
      <transaction-support>NoTransaction</transaction-support>
      <connection-definitions>
      <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/qcf/vhptp" enabled="true" pool-name="mqConnectionVHPTPPool1">
      <config-property name="port">
      1415
      </config-property>
      <config-property name="hostName">
      192.168.0.247
      </config-property>
      <config-property name="transportType">
      CLIENT
      </config-property>
      <config-property name="cleanupInterval">
      300000
      </config-property>
      <config-property name="queueManager">
      cbp.queue.manager
      </config-property>
      <pool>
      <min-pool-size>1</min-pool-size>
      <max-pool-size>200</max-pool-size>
      <prefill>true</prefill>
      </pool>
      </connection-definition>
      </connection-definitions>
      </resource-adapter>
      <resource-adapter id="wmq.jmsra.rar4">
      <archive>
      wmq.jmsra.rar
      </archive>
      <transaction-support>NoTransaction</transaction-support>
      <connection-definitions>
      <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/qcf/vh" enabled="true" pool-name="mqConnectionVHool">
      <config-property name="port">
      1415
      </config-property>
      <config-property name="hostName">
      192.168.0.247
      </config-property>
      <config-property name="transportType">
      CLIENT
      </config-property>
      <config-property name="cleanupInterval">
      300000
      </config-property>
      <config-property name="queueManager">
      cbp.queue.manager
      </config-property>
      <pool>
      <min-pool-size>1</min-pool-size>
      <max-pool-size>200</max-pool-size>
      <prefill>true</prefill>
      </pool>
      </connection-definition>
      </connection-definitions>
      </resource-adapter>
      </resource-adapters>
      </subsystem>

      Exceptions at the time of deployment.

      14:47:57,544 ERROR [org.jboss.msc.service] (MSC service thread 1-5) MSC000002: Invocation of listener "org.jboss.as.connector.util.RaServicesFactory$2@46a660f2" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters

      at org.jboss.as.controller.registry.AbstractModelResource$DefaultResourceProvider.register(AbstractModelResource.java:224) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.controller.registry.AbstractModelResource.registerChild(AbstractModelResource.java:134) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceListener.java:140) [wildfly-connector-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1533) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:51) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:2099) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

      14:47:57,544 ERROR [org.jboss.msc.service] (MSC service thread 1-6) MSC000002: Invocation of listener "org.jboss.as.connector.util.RaServicesFactory$2@6358919d" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters

      at org.jboss.as.controller.registry.AbstractModelResource$DefaultResourceProvider.register(AbstractModelResource.java:224) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.controller.registry.AbstractModelResource.registerChild(AbstractModelResource.java:134) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceListener.java:140) [wildfly-connector-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1533) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:51) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:2099) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

      14:47:57,544 ERROR [org.jboss.msc.service] (MSC service thread 1-4) MSC000002: Invocation of listener "org.jboss.as.connector.util.RaServicesFactory$2@5f064521" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters

      at org.jboss.as.controller.registry.AbstractModelResource$DefaultResourceProvider.register(AbstractModelResource.java:224) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.controller.registry.AbstractModelResource.registerChild(AbstractModelResource.java:134) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceListener.java:140) [wildfly-connector-8.2.0.Final.jar:8.2.0.Final]

      at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1533) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:51) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:2099) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      Please advise in this regard.

      Thanks in Advance.

      Pradeep. P

              jpederse@redhat.com Jesper Pedersen
              ppantula83 Pradeep Pantula (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: