3 Replies Latest reply on Oct 13, 2008 10:24 AM by Alexandre Krohn

    Multiple deployments of the same mbean service

    Anil Saldanha Master

      I remember seeing some discussion on the MBean registration aspect. But as it stands, the deploy/undeploy of an mbean service is still not working right as far as the registration is concerned. Point is that you cannot deploy/undeploy/deploy the same mbean service multiple times.

      You will see errors, such as:

      vfsfile:/C:/cygwin/home/asaldhana/jboss-5.0/jboss-head/testsuite/output/resources/security-spi/rolemapping/rolemapping-test-service.xml -> java.lang.IllegalStateException: jboss.security.tests:service=DynamicLoginConfig is already installed.
      
      
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:696)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:642)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:618)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:607)
      


      Is there an open JIRA issue on this?

        • 2. Re: Multiple deployments of the same mbean service
          Anil Saldanha Master

          I do not think there is any issue in deploying/undeploying/deploying an MBean service. The registration/deregistration is working correctly.

          
          one-test:
           [junit] Running org.jboss.test.jmx.test.MBeanServiceRegistrationUnitTestCase
          
           [junit] Found log4j.xml: file:/C:/cygwin/home/asaldhana/jboss-5.0/jboss-head
          /testsuite/output/resources/log4j.xml
           [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.75 sec
          


          • 3. Re: Multiple deployments of the same mbean service
            Alexandre Krohn Newbie

            I'm facing the same problem at JBoss 5.0.0.RC2 :

            10:56:13,797 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/Servers/jboss-5.0.0.CR2/server/default/deploy/NL.ear state=PreReal mode=Manual requiredState=Real
            org.jboss.deployers.spi.DeploymentException: Error during install jboss.security:service=DynamicLoginConfig
            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
            at org.jboss.system.ServiceController.install(ServiceController.java:263)
            at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:95)
            at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
            at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)

            Alexandre
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.IllegalStateException: jboss.security:service=DynamicLoginConfig is already installed.
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:716)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
            at org.jboss.system.ServiceController.doInstall(ServiceController.java:654)
            at org.jboss.system.ServiceController.install(ServiceController.java:257)
            ... 30 more
            10:56:13,839 WARN [HDScanner] Failed to process changes
            org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            *** CONTEXTS IN ERROR: Name -> Error

            vfszip:/Servers/jboss-5.0.0.CR2/server/default/deploy/NL.ear -> java.lang.IllegalStateException: jboss.security:service=DynamicLoginConfig is already installed.


            at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:709)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:661)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291)
            at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
            at java.lang.Thread.run(Thread.java:595)