6 Replies Latest reply on Jan 20, 2011 2:54 PM by lchaply

    port: 3873 is in which xml file?

      Hi folks,
      I got a exception when running Jboss. I am running 2 jboss in my computer. so i need to change port 3873. Could you tell me where to find this file with port 3873.
      Thank you!

      Chwang


      14:31:26,181 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind port: 3873, bind address: /127.0.0.1
      14:31:26,181 ERROR [Connector] Error starting connector.
      java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.(ServerSocket.java:185)
      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
      at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
      at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
      at org.jboss.remoting.transport.Connector.start(Connector.java:322)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)

        • 1. Re: port: 3873 is in which xml file?
          peterj

          I was going to refer you to the "ConfiguringMultipleJBossInstancesOnOneMachine" topic in the wiki, but the wiki appears to be broke right now. When it is back up you can find the answer there.

          • 2. Re: port: 3873 is in which xml file?
            chrismm

            Its in :-
            deploy\ejb3.deployer\META-INF\jboss-service.xml

            • 3. Re: port: 3873 is in which xml file?
              bingojava

              Hi, After 4 years I am having the same problem ;-)

               

              I am using Jboss 5.1.0  and theres no jboss-service.xml in deploy\ejb3.deployer\META-INF\jboss-service.xml

               

              The same XML is in server\default\conf   ...but even there also 3873 does not exists.

               

              I tried to find it in server\default\deployers\ejb3.deployer\META-INF 

               

              but , its not there also .... I need to find that port and change it , as I am using 2 instances on linux server ..and this port is already used by node1..

              so node2 is not starting .... 

              • 4. Re: port: 3873 is in which xml file?
                jaikiran

                For AS5, it's in JBOSS_HOME/server/< servername>/deploy/ejb3-connectors-jboss-beans.xml

                • 5. Re: port: 3873 is in which xml file?
                  bingojava

                  Thanks and its running

                  • 6. Re: port: 3873 is in which xml file?
                    lchaply

                    Hi,

                     

                    You can also add this in $JBOSS_HOME/server/[your server]/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

                     

                    <bean class="org.jboss.services.binding.ServiceBindingMetadata">

                        <property name="serviceName">jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3</property>

                        <property name="port">3873</property>

                        <property name="description">JBoss Remoting Connector</property>

                    </bean>

                     

                    This way this port is automatically changed with the other when using the ports-01 ports-02 etc... bindings. ejb3-connectors-jboss-beans.xml uses the bindings, but the connector port is not included in the default bindings, at least in 5.0.0.

                     

                    Regards,

                     

                    Laurent