Shutdown is called more than once when JBoss EAP 5 is configured as Windows service
Issue
- When I shutdown the JBoss service, JBoss is stopped and after that there is a communication error in the log.
Shutting down JBoss 5.1.2 [2015-03-27 09:45:24]
Shutdown message has been posted to the server.
Server shutdown may take a while - check logfiles for completion
Shutdown JBoss 5.1.2 service [2015-03-27 09:45:25]
Shutting down JBoss 5.1.2 [2015-03-27 09:45:40]
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: hostname:2099 [Root exception is javax.naming.CommunicationException: Failed to connect to server hostname/ip:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server hostname/ip:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1828)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:717)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.jboss.Shutdown.main(Shutdown.java:219)
Caused by: javax.naming.CommunicationException: Failed to connect to server hostname/ip:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server hostname/ip:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:359)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:284)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1798)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server hostname/ip:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:329)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
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:325)
... 6 more
Shutdown JBoss 5.1.2 service [2015-03-27 09:45:41]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5.x
- Windows
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.