5 Replies Latest reply on Dec 26, 2012 9:41 AM by aristides

    Deploy multiple resource adapters (including ironjacamar.xml)

    clubsoda

      Hi there,

       

      In JBoss 7.1.1, is it possible to deploy two resource adapter rar's at the same time which both have their own ironjacamar.xml included in META-INF? I'm trying to do that and always get the error:

       

      Invocation of listener "org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor$1@4c0a2348" failed: java.lang.IllegalArgumentException: 
      A node is already registered at '(deployment => *)(subsystem => resource-adapters)(ironjacamar => ironjacamar)'
      

       

      Having deployed one rar at a time does work well, but both?

       

      Thanks & regards!

        • 1. Re: Deploy multiple resource adapters (including ironjacamar.xml)
          jesper.pedersen

          Please, try with the latest nightly snapshot. It is a valid use-case.

          • 2. Re: Deploy multiple resource adapters (including ironjacamar.xml)
            j_ri

            Is there a JIRA issue for this to which one can add to the watchlist?

            We have the same problem here;-( Two RARs in one EAR....

            • 3. Re: Deploy multiple resource adapters (including ironjacamar.xml)
              bmaxwell

              Tested nightly build and it is not fixed as of yet.

               

              Jira shows it should be fixed for 7.1.3, 7.2.0.Alpha1 :

              https://issues.jboss.org/browse/AS7-5311

              1 of 1 people found this helpful
              • 4. Re: Deploy multiple resource adapters (including ironjacamar.xml)
                jesper.pedersen

                AS7-5311 is resolved in nightly

                • 5. Re: Deploy multiple resource adapters (including ironjacamar.xml)
                  aristides

                  Hi, I´ve just downloaded the latest from https://ci.jboss.org/hudson/view/JBoss%20AS/job/JBoss-AS-7.0.x/

                   

                  Acoording to the AS7-5311 it should be resolved. But I´m sorry to say that this problem still ocurrs, my deployment structure is simple:

                   

                  • App.ear
                    • KernelConector.rar
                      • META-INF
                        • ironjacamar.xml
                    • RFConector.rar
                      • META-INF
                        • ironjacamar.xml
                    • Ejbs.jar

                   

                  If I use one ironjacamar.xml at a time, then it works, but when I put then both like described in the structure above I get the same error:

                   

                  12:39:56,952 ERROR [org.jboss.msc.service] (MSC service thread 1-7) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor$1@89bc0ef" failed: java.lang.IllegalArgumentException: JBAS014809: A node is already registered at '(deployment => *)(subdeployment => *)(subsystem => resource-adapters)(ironjacamar => ironjacamar)'

                      at org.jboss.as.controller.registry.ConcreteResourceRegistration.registerSubModel(ConcreteResourceRegistration.java:112) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                      at org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor$1.registerIronjacamar(ParsedRaDeploymentProcessor.java:133) [jboss-as-connector-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                      at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceListener.java:153) [jboss-as-connector-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                      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_37]

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

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

                   

                  Is it working for you?