Version 2


    If you get an error like this when you try to connect to the JBoss server:


    javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host:; nested exception is:  Connection timed out: connect]
         at org.jnp.interfaces.NamingContext.lookup(
         at org.jnp.interfaces.NamingContext.lookup(
         at javax.naming.InitialContext.lookup(


    and the address listed is no longer in use it is because the server remembers its startup address and hands it back to the client on the initial port (usually 1099).  Unfortunately it is difficult to distinguish this connect error from one where the server is genuinely un-reachable.


    This occurs on our development machines when someone starts up the server while wireless networking is connected and then disconnects wireless on the server machine.  The client sucessfully finds the server using the url, but then the server hands back an old, stale address on the wireless subnet.