1 Reply Latest reply on Sep 26, 2012 8:32 AM by Jesper Pedersen

    java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters

    Aryan RS Newbie

      Hi,

       

      I am using ironjacamar.xml in my resource adapter. I have defined two connectionfactories (one for queue and topic - with different JNDI). This seems to fail in JBoss AS7.1.2 with the following error :-

       

      16:59:45,716 ERROR [org.jboss.msc.service] (MSC service thread 1-6) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.ra.processors.ParsedRaDeplo

      ymentProcessor$1@7d557ee8" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters

              at org.jboss.as.controller.registry.AbstractModelResource$DefaultResourceProvider.register(AbstractModelResource.java:225) [jboss-as-controller-7.1.2.Fina

      l.jar:7.1.2.Final]

              at org.jboss.as.controller.registry.AbstractModelResource.registerChild(AbstractModelResource.java:135) [jboss-as-controller-7.1.2.Final.jar:7.1.2.Final]

              at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceList

      ener.java:109) [jboss-as-connector-7.1.2.Final.jar:7.1.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

       

      The files I have used are from http://blog.coffeebeans.at/?p=230 .

       

      (I read few responses which asks to pick the nightly build but they were old posts. Is this fix in a newer version after 7.1.2 or a wrong usage ? )

       

      Regards,

      Aryan