7 Replies Latest reply on Jan 21, 2013 3:57 AM by fan kam thong

    DuplicateRegistrationException : Multiple outbound connection to a clustered server

    SunilGiri s Newbie

      I have the following entries in domain controller (client-server) domain.xml , jboss7.1.1 final,

       


      <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-server1" username="ejb" security-realm="ebs-ejb-security-realm">

      <properties>

      <property name="SASL_POLICY_NOANONYMOUS" value="false"/>

      <property name="SSL_ENABLED" value="false"/>

      </properties>

      </remote-outbound-connection>

      <remote-outbound-connection name="remote-ejb-connection2" outbound-socket-binding-ref="remote-server2" username="ejb" security-realm="ebs-ejb-security-realm">

      <properties>

      <property name="SASL_POLICY_NOANONYMOUS" value="false"/>

      <property name="SSL_ENABLED" value="false"/>

      </properties>

      </remote-outbound-connection>

       

       

        <outbound-socket-binding name="remote-server1">

                      <remote-destination host="10.1.20.5" port="5447"/>

        </outbound-socket-binding>

       

      <outbound-socket-binding name="remote-server2">

                      <remote-destination host="10.1.20.5" port="5547"/>

      </outbound-socket-binding>

       

      Note : The destination server is clustered & has two server instances running on different port offsets.

       

      I get the following issue on the client server startup,

       

      [Server:pfmserver-one] 15:07:12,357 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-78) MSC00001: Failed to start service jboss.remoting.endpoint.subsystem.outbound-connection.remote-ebsc-ejb-connection: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.subsystem.outbound-connection.remote-ebsc-ejb-connection: Failed to start service

      [Server:pfmserver-one]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      [Server:pfmserver-one]  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]

      [Server:pfmserver-one]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]

      [Server:pfmserver-one]  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

      [Server:pfmserver-one] Caused by: org.jboss.remoting3.DuplicateRegistrationException: URI scheme 'remote://' is already registered to a provider

      [Server:pfmserver-one]  at org.jboss.remoting3.EndpointImpl.addConnectionProvider(EndpointImpl.java:421) [jboss-remoting-3.2.3.GA.jar:3.2.3.GA]

      [Server:pfmserver-one]  at org.jboss.as.remoting.RemoteOutboundConnectionService.start(RemoteOutboundConnectionService.java:89) [jboss-as-remoting-7.1.1.Final.jar:7.1.1.Final]

      [Server:pfmserver-one]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      [Server:pfmserver-one]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]