2 Replies Latest reply on May 22, 2010 3:46 PM by ravi_kh123

    JBoss Shutdown Error !!

    saswatamandal

      Hi Experts,

       

           While tried to shutdown the JBoss Server 4.2.0 GA , we are receiving the following error :-

       

      C:\Documentum\jboss4.2.0\bin>shutdown -S
      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 except
      ion is javax.naming.ServiceUnavailableException: Failed to connect to server loc
      alhost:1099 [Root exception is java.net.ConnectException: Connection refused: co
      nnect]]]
              at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
              at javax.naming.InitialContext.lookup(InitialContext.java:351)
              at org.jboss.Shutdown.main(Shutdown.java:214)
      Caused by: javax.naming.CommunicationException: Failed to connect to server loca
      lhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed t
      o connect to server localhost:1099 [Root exception is java.net.ConnectException:
      Connection refused: connect]]
              at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
              at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
              ... 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:243)
              ... 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:266)
              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:239)
              ... 5 more
      Press any key to continue . . .

       

       

      Please suggest why this error is thrown and how can we resolve this .

       

      Thanks & Regards

      saswata mandal.

        • 1. Re: JBoss Shutdown Error !!
          peterj

          Are you running shutdown on the same system on which JBoss AS is running?

           

          Did you change any of the ports that JBoss AS is using?

           

          Did you start JBoss AS with the -b option (that is, which IP address is it bound to)?

           

          By the way, if you started JBoss AS from a command line, you can type CTRL-C within that window to shut it down cleanly.

          • 2. Re: JBoss Shutdown Error !!
            ravi_kh123

            Hi Saswata,

             

            change the port no <attribute name="Port">1099</attribute> in conf/jboss-service.xml to 11099 .

             

            u can shutdown your server through the task manager also..kill java running on the task manager..it ll led to the safe shutdown of your server