4 Replies Latest reply on Jul 30, 2008 9:32 AM by obarcelona

    Problem shuting down

    obarcelona

      Hi we have a problem shutting down a Jboss server. We use the following command:
      shutdown -S -s : -u -p

      We don't know what happens with ip beacuse we are specifing a internet ip like 80.2.3.x but always the server refuse the connection on ip 127.0.0.1
      Note that there are two internet ip's on that machine and perhaps i think there are a problem with operative system configuration (nat?)

      here the stack trace of the error:

      Shutting down JBoss Application Server 4.2.2 [2008-07-30 10:04:17]
      Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
       at javax.naming.InitialContext.lookup(InitialContext.java:392)
       at org.jboss.Shutdown.main(Shutdown.java:214)
      Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
       ... 4 more
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
       ... 5 more
      Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:519)
       at java.net.Socket.connect(Socket.java:469)
       at java.net.Socket.<init>(Socket.java:366)
       at java.net.Socket.<init>(Socket.java:267)
       at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
       at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
       ... 5 more
      Shutdown JBoss Application Server 4.2.2 service [2008-07-30 10:04:19]



      thanks a lot and sorry for my english :(

        • 1. Re: Problem shuting down
          jaikiran

          See the reply by Peter, dated Tue Jun 24, 2008 18:10 PM in this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138054. If it still doesn't work then post back with details.

          • 2. Re: Problem shuting down
            obarcelona

            I have alredy read this post and i didn't found the solution.

            If i use netstat i see that the server is listening the port 1099 but for any reason when i type de command for shutting down the server get localhost ip (127.0.0.1) instead the ip i type throw the command line.

            If i have started te server with the command: run -b ip
            Don't i have to change any configuration file for the binding address?

            I think that perhaps is a external issue from windows 2003 server i don't know.

            Thank you

            • 3. Re: Problem shuting down
              jaikiran

              Please post the exact command you are using and also the contents of your etc/hosts file.

              • 4. Re: Problem shuting down
                obarcelona

                The command for runing the server:

                run -b <ip>


                For stopping the server:

                shutdown -S -s <ip>:<port> -u <user> -p <password>


                Sorry but i can't post the content of etc/hosts. This isn't our machine and i'm not allowed to post that content here.

                Do you think that there can be a problem with etc/hosts? Remember that we are using windows 2003 server.

                Thanks a lot mate