JBoss Remoting service sometimes fails to boot when multiple remote connections are defined in EAP 6
Issue
When multiple remote connections are defined like the following:
-
In
<subsystem xmlns="urn:jboss:domain:remoting:1.1">:<outbound-connections> <remote-outbound-connection name="remote-ejb-connection1" outbound-socket-binding-ref="remote-ejb"> </remote-outbound-connection> <remote-outbound-connection name="remote-ejb-connection2" outbound-socket-binding-ref="remote-ejb"> </remote-outbound-connection> </outbound-connections> -
In
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">:<outbound-socket-binding name="remote-ejb"> <remote-destination host="localhost" port="4447"/> </outbound-socket-binding>
Then JBoss Remoting service sometimes fails to boot:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.remoting.endpoint.subsystem.outbound-connection.dummy-6: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.subsystem.outbound-connection.dummy-6: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
Caused by: org.jboss.remoting3.DuplicateRegistrationException: URI scheme 'remote://' is already registered to a provider
at org.jboss.remoting3.EndpointImpl.addConnectionProvider(EndpointImpl.java:421)
at org.jboss.as.remoting.RemoteOutboundConnectionService.start(RemoteOutboundConnectionService.java:89)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
- EJB client hanging in Domain mode, could be related to: https://issues.jboss.org/browse/AS7-4834
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
