1 Reply Latest reply on Feb 12, 2008 10:06 AM by peterj

    Error while running multiple instances of JBOSS 4.0.5 on sam

    wmt2007

      We are trying to run multiple instances of JBOSS 4.0.5 on the same machine and are running into port conflict issues.

      For configuring multiple instances, we have followed instructions from the foll JBOSS documentation :

      http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch08.html#ch10.bindingmanager.

      We setup two instances by copying the default settings . Changes to the ports numbers were made for the second instance in the foll files


      <jboss-instance2>conf\jboss-service.xml
      <jboss-instance2>\deploy\http-invoker.sar\META-INF\jboss-service.xml
      <jboss-instance2>\deploy\jbossweb-tomcat55.sar\server.xml
      <jboss-instance2>\deploy\jms\uil2-service.xml


      When we try to run the first instance there are no issues, when we run the second instance on the same machine, we get an error "Port 0 already in use" .

      "java.rmi.server.ExportException: Port already in use: 0; nested exception is:
      java.net.BindException: Address already in use: JVM_Bind
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:243)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:178)
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:235)
      at java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:133)
      at java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:119)
      ......................"


      1) How do we rectify this error?

      2) Are there any other configuration changes that need to be done to run multiple instances of JBOSS ?

      thanks,
      Sridevi

        • 1. Re: Error while running multiple instances of JBOSS 4.0.5 on
          peterj

          I am a little confused. The link you posted gives instructions on using the binding manager service to specify port mappings. This involves using a bindings file (an example is provided at docs/examples/binding-manager/sample-bindings.xml) and setting the ServiceBindingManager mbean in the jboss-service.xml file. Yet it appears that you have instead modified individual files where port numbers appear. You need to go back and read the instructions on configuring the binding manager again.