Getting CommunicationException message while shuting down the EAP 5

Solution Unverified - Updated -

Issue

  • Installed JBoss EAP 5.1 and JBoss native by following the setup procedures in the Installation Guide. It looks that JBoss EAP has been successfully installed as a windows service. Starting the JBoss EAP 5 SVC windows service works fine. But the following Exception occurs in the $JBOSS_DIST/native/sbin/shutdown.log when stopping the JBoss EAP 5 SVC windows service.

  • "Shutdown.log" shows the following Exception message when stopping a JBoss EAP 5.

    Shutting down JBoss EAP 5 [2011-05-16 17:29:12]
    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/192.168.x.x:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/192.168.x.x:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
        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:392)
        at org.jboss.Shutdown.main(Shutdown.java:219)
    Caused by: javax.naming.CommunicationException: Failed to connect to server localhost/192.168.x.x:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/192.168.x.x:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
        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 localhost/192.168.x.x:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
        ... 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:525)
        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
    Shutdown JBoss EAP 5 service [2011-05-16 17:29:14]
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x.x
  • JBoss Native
  • Windows

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.