3 Replies Latest reply on Apr 21, 2015 1:08 PM by jayashree.a2010

    Problem shutting down JBoss 4.0.3

    rebeccaz

      Hi,

      Does anyone encounter the problem below. In an initial attempt to shutdown, i actually typed shutdown.sh but was prompted to enter other option and hence I followed the guide by entering command shutdown.sh -S. However, it does not shutdown the jboss process. Pls advise. Thanks!

      >shutdown.sh -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 exception is
      javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectEx
      ception: Connection refused]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.jboss.Shutdown.main(Shutdown.java:202)
      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: Conne
      ction refused]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
      ... 4 more
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net
      .ConnectException: Connection refused]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
      ... 5 more
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:462)
      at java.net.Socket.connect(Socket.java:412)
      at java.net.Socket.(Socket.java:308)
      at java.net.Socket.(Socket.java:211)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
      ... 5 more

        • 1. Re: Problem shutting down JBoss 4.0.3
          mybasswood

          ./shutdown.sh -s
          like this

          • 2. Re: Problem shutting down JBoss 4.0.3
            michaelmuo

            The same error. For 4.0.5GA I tried to use as
            usr/local/jboss/bin> ./shutdown.sh
            as
            usr/local/jboss/bin> ./shutdown.sh --shutdown

            but JBoss does not shutted down with the next error(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 exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
            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 localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
            ... 4 more
            Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
            ... 5 more
            Caused by: java.net.ConnectException: Connection refused
            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:516)
            at java.net.Socket.connect(Socket.java:466)
            at java.net.Socket.(Socket.java:366)
            at java.net.Socket.(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

            • 3. Re: Problem shutting down JBoss 4.0.3
              jayashree.a2010

              Did you get a solution for this?