Not able to shutdown the binded server
sushmita_mishra Jul 29, 2010 7:15 AMHi,
I tried to bind a remote IP to my server.Itworked fine. But now when I am trying to shutdown my server it is not getting shutdown.
I user the following command to run my server :
[user@localhost bin]$./run.sh -b <IP>
this is working perfectly fine and the remote access is also established but when I execute the command to shutdown my server then the following message is comming :
[user@localhost bin]$ ./shutdown.sh -S
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: 172.18.227.179 [Root exception is javax.naming.CommunicationException: Failed to connect to server /172.18.227.179:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /172.18.227.179:1099 [Root exception is java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at org.jboss.Shutdown.main(Shutdown.java:219)
Caused by: javax.naming.CommunicationException: Failed to connect to server /172.18.227.179:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /172.18.227.179:1099 [Root exception is java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /172.18.227.179:1099 [Root exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:381)
at java.net.Socket.connect(Socket.java:537)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
... 5 more
I have also tried to execute
[openuser@o1hw185906 bin]$ ./shutdown.sh -s <IP> -S
Still the same issue persists.
Whenever I am trying to shutdown my server ,the system is trying to shut down the unbinded server if I run the default server and then try to stop it.
Please somebody help me to stop my binded server.