JBoss Community

Re: TransactionManager and AS' ServiceBindingManager

created by Vilmar Silva in JBoss Transactions Development - View the full discussion

Hi, I would like jboss 5; use the ports file ports-binding.xml to distribute the various instances as I do in jboss 4.2.2.; do it like this:
.. /
jboss-5.0.1.GA / bin / ports-binding.xml

. / conf / service-jboss.xml
tag <- <mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager">
   <attribute name="ServerName"> ports-default </ attribute>
   <attribute name="StoreURL"> /
jboss-5.0.1.GA/ bin / port-bindings.xml </ attribute>
   <attribute name="StoreFactoryClassName"> org.jboss.services.binding.XMLServicesStoreFactory </ attribute>
   </ mbean>

ports are passed by the generic file /jboss/server/defautl/generic-port, for example generic-port

 

port.prefix=8

 

 

/bin/ksh -x /jboss-5.0.1.GA/bin/run.sh -c default -b 0.0.0.0 -P /jboss-5.0.1.GA/server/default/generic-port

 

Error displayed after setting:

 

12:50:32,249 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/opt/jboss-5.0.1.GA/server/default/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real

org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.system:service=ServiceBindingManager

        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)

        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

        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:171)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

        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:781)

        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)

        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

        at org.jboss.Main.boot(Main.java:209)

        at org.jboss.Main$1.run(Main.java:547)

        at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.IllegalStateException: jboss.system:service=ServiceBindingManager 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:670)

        at org.jboss.system.ServiceController.install(ServiceController.java:273)

        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)

        ... 23 more

12:50:32,682 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

 

DEPLOYMENTS IN ERROR:

  Deployment "vfsfile:/opt/jboss-5.0.1.GA/server/default/conf/jboss-service.xml" is in error due to the following reason(s): java.lang.IllegalStateException: jboss.system:service=ServiceBindingManager is already installed.

 

12:50:32,686 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 33s:243ms

^C12:50:51,718 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true

12:50:54,817 INFO  [ServerImpl] Shutdown complete

Shutdown complete

Reply to this message by going to Community

Start a new discussion in JBoss Transactions Development at Community