0 Replies Latest reply on Sep 21, 2009 7:22 AM by Alexander Medina

    standard shutdown fails on jboss 5.1.0

    Alexander Medina Newbie

      Hi everyone,

      I've installed a fresh installation of JBoss AS 5.1.0.GA on a linux redhat with jdk 1.6_11 installed. I set JBOSS_HOME variable and added /bin directory to the classpath. Jboss is starting in the default and all configuration without errors.
      However, if i execute './shutdown.sh -S' i get the exception at the end of my post. Seems that something with the jndi is broken. I've tried to deploy an ejb2.1 project on to the server. I got exaxtly the same exception during client lookup.
      Strangely everything is working fine on JBoss AS 4.0.5. Anyone got an idea?


      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.11.46:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/192.168.11.46: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:392)
       at org.jboss.Shutdown.main(Shutdown.java:219)
      Caused by: javax.naming.CommunicationException: Failed to connect to server localhost/192.168.11.46:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/192.168.11.46: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 localhost/192.168.11.46: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.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 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