3 Replies Latest reply on Jul 28, 2004 5:58 PM by Anil Saldanha

    Port assignments -- necessary ?  And if so then how to confi

    James Adams Novice

      Do you need to modify or specify any port numbers for the multiple servers/VMs in a cluster ? I am assuming that each VM (node) in the cluster will need to listen to different ports, and this might not be taken care of magically by JBoss, as witnessed below by my second instance (node) in a cluster not being able to start the WebService since another node is already listening to to the port. I run one instance of JBoss via "run-c all" and when I run another instance of JBoss (which will make it the second node in the cluster, right ?) I get the following exception:

      13:57:57,278 ERROR [WebService] Starting failed jboss:service=WebService
      java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
      at java.net.ServerSocket.bind(ServerSocket.java:318)
      at java.net.ServerSocket.(ServerSocket.java:185)
      at org.jboss.web.WebServer.start(WebServer.java:178)
      at org.jboss.web.WebService.startService(WebService.java:286)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)

      Any insights or suggestions will be appreciated, thanks in advance.