1 2 Previous Next 16 Replies Latest reply: May 17, 2012 12:11 AM by Amos Feng RSS

Start jboss-as-7.1.2-SNAPSHOT fail with "org.jboss.msc.service.DuplicateServiceException: Service jbosgi.integration.PersistentBundlesHandler is already registered"

Amos Feng Newbie

Hi,

 

we use arquillian to run some xts crash recovery tests and meet this issue when start jboss-as container with arquillian.

 

 

Apr 25, 2012 10:12:01 AM org.jboss.arquillian.container.test.impl.client.container.ClientContainerController start
INFO: Manual starting of a server instance with overridden configuration. New configuration: {javaVmArguments=-Xms64m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.byteman.verbose -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.byteman.transform.all -javaagent:target/test-classes/lib/byteman.jar=script:target/test-classes/scripts/BACrashDuringCommit.txt,boot:target/test-classes/lib/byteman.jar,listener:true, serverConfig=../../docs/examples/configs/standalone-xts.xml}
Apr 25, 2012 10:12:01 AM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
INFO: Starting container with: [/usr/local/jdk1.6.0_26/bin/java, -Xms64m, -Xmx512m, -XX:MaxPermSize=256m, -Dorg.jboss.byteman.verbose, -Djboss.modules.system.pkgs=org.jboss.byteman, -Dorg.jboss.byteman.transform.all, -javaagent:target/test-classes/lib/byteman.jar=script:target/test-classes/scripts/BACrashDuringCommit.txt,boot:target/test-classes/lib/byteman.jar,listener:true, -ea, -Djboss.home.dir=/home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT, -Dorg.jboss.boot.log.file=/home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/standalone/log/boot.log, -Dlogging.configuration=file:/home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/modules, -Djboss.bundles.dir=/home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/bundles, -jar, /home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/jboss-modules.jar, -mp, /home/hudson/workspace/jbossts-branch416-xts-recovery-java6/jboss-as/build/target/jboss-as-7.1.2.Final-SNAPSHOT/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, ../../docs/examples/configs/standalone-xts.xml]
TransformListener() : accepting requests on localhost:9091
10:12:02,508 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
10:12:02,687 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
10:12:02,743 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.2.Final-SNAPSHOT "Brontes" starting
10:12:04,089 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
10:12:04,095 INFO  [org.xnio] XNIO Version 3.0.3.GA
10:12:04,106 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
10:12:04,117 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.4.GA
10:12:04,134 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
10:12:04,136 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
10:12:04,162 INFO  [org.jboss.as.jacorb] (ServerService Thread Pool -- 39) JBAS016300: Activating JacORB Subsystem
10:12:04,201 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) JBAS010280: Activating Infinispan subsystem.
10:12:04,211 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 50) JBAS011940: Activating OSGi Subsystem
10:12:04,245 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 49) JBAS011800: Activating Naming Subsystem
10:12:04,273 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
10:12:04,368 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 59) JBAS015537: Activating WebServices Extension
10:12:04,401 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 55) JBAS013101: Activating Security Subsystem
10:12:04,422 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
10:12:04,491 INFO  [org.jboss.jaxr] (MSC service thread 1-4) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory
10:12:04,489 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 50) JBAS014612: Operation ("add") failed - address: ([("subsystem" => "osgi")]): org.jboss.msc.service.DuplicateServiceException: Service jbosgi.integration.PersistentBundlesHandler is already registered
 at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
 at org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:955) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.osgi.service.PersistentBundlesIntegration.addService(PersistentBundlesIntegration.java:75) [jboss-as-osgi-service-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.osgi.parser.OSGiSubsystemAdd$2.execute(OSGiSubsystemAdd.java:131) [jboss-as-osgi-service-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.osgi.parser.OSGiSubsystemAdd$1.execute(OSGiSubsystemAdd.java:103) [jboss-as-osgi-service-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
 at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
 at org.jboss.threads.JBossThread.run(JBossThread.java:122)

 

more detail from https://issues.jboss.org/browse/JBTM-1136.

 

Thanks,

Amos

1 2 Previous Next