1 Reply Latest reply on Jan 7, 2005 4:17 PM by anil.saldhana

    Cannot start JBoss reliably unless disconnected from network

    kalirion

      I'm on a Win2k machine. When I try to start JBoss while connected to the network, I almost always get an error similar to:

      14:25:18,890 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:210)
      at org.jboss.web.WebService.startService(WebService.java:306)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:222)

      Sometimes it gives a port number (usually the RMI port), sometimes it doesn't. According to TCPView no process uses those ports, but I switched them around anyway. Didn't help. Sometimes (but not always) when I restart my workstation JBoss starts just fine, but only the first time. Even after a graceful JBoss shutdown it gives the JVM_Bind errors upon next startup attempt.

      The weird thing is this only happens when I am connected to the LAN. If I pull the network cable before executing run.bat, everything works perfectly.

      Does anyone know why this is happening and if there's a solution?

      Thanks in advance!