2 Replies Latest reply on Dec 9, 2008 8:44 AM by paurik

    Jboss Shutdown Problem

    paurik

      Hello friends I use jboss 4.2.2 GA . I deploy alfresco.war file in jboss 4.2.2 GA. but when i shutdown jboss following error are occurs.

      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 except ion is javax.naming.ServiceUnavailableException: Failed to connect to server loc alhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      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 loca lhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed t o connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
      ... 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:248)
      ... 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:244)
      ... 5 more

      if any solution for that then please reply me.

        • 1. Re: Jboss Shutdown Problem
          jaikiran

          What command did you use to shutdown the server? And what does return?

          telnet localhost 1099


          What command did you use to start the server? And where are you trying to stop the server from, is it the same system as the server?

          Also have a look at this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138054 and see if it helps.

          • 2. Re: Jboss Shutdown Problem
            paurik

            hi jaikiran,
            i am using all shutdown command for that as follows

            sh shutdown.sh -S
            that returns me above error

            2nd command i use

            sh shutdown.sh --s -server=myserver name:1099


            for startup i using following command

            sh startserver.sh

            i am not giving any ip for starting


            and your last question answer is

            for startup ans shutdown i am using same machine not different.