2 Replies Latest reply on Feb 23, 2006 6:09 AM by Stanislav Makarchuk

    Shutdown = Connection refused

    James Ward Newbie

      This one has me totally stumped...

      I am running JBoss 3.2.3 on Linux and starting JBoss setting the bind address so that I can run multiple jboss instances on the same box, but all on different ip's. In linux I have just a simple IP alias setup, let's say 192.168.0.2 with my primary ip address being 192.168.0.3. Now startup works fine. Testing with telnet I have verified that indeed JBoss bound to just the 192.168.0.2 ip address. That's good. However, when I try to shutdown jboss by typing:

      ./shutdown.sh -s192.168.0.2
      


      I get:

      Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.0.3; nested exception is:
      java.net.ConnectException: Connection refused]


      WTF? Why is the IP changing to 192.168.0.3 ? I specified 192.168.0.2!

      When I run:
      ./shutdown.sh -S
      


      I get:

      Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost:1099; nested exception is:
      java.net.ConnectException: Connection refused]


      So, I know that JBoss is trying to specify the actual IP address, but why does the IP change to the real interface ip instead of leaving it as the specifed IP alias?

      I am not sure if it matters, but I do have two distinct lines in my /etc/hosts file for the two different ip's.

      Please someone help... Thanks in advance.