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

    Error while running multiple instances of JBOSS 4.0.5 on sam

    Sridevi Sivakumar Newbie

      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 :


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


      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 ?


        • 1. Re: Error while running multiple instances of JBOSS 4.0.5 on
          Peter Johnson Master

          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.