2 Replies Latest reply on Nov 19, 2008 6:15 AM by dhanunjay reddy valluru

    How to make my service wait for port 1099 to come up?

    Vivek Srivastav Newbie

      I have the following dependencies in the jboss-service.xml file.

       <depends>jboss:service=Naming</depends>
       <depends>jboss:service=invoker,type=jrmp</depends>
       <depends>jboss:service=invoker,type=http,target=Naming</depends>
      


      but the service, where I am registering an object in the naming service fails to start during boot because it's start lifecycle method is getting called even before the port 1099 is created.
      Appreciate any insight.
      Regards
      Vivek

      Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
       ... 101 more
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
       ... 102 more
      Caused by: java.net.ConnectException: Connection refused: connect
      


        • 1. Re: How to make my service wait for port 1099 to come up?
          Vivek Srivastav Newbie

          ignore... the depends was in th wrong place.

          • 2. when trying to stop weblogic server I am getting Exception i
            dhanunjay reddy valluru Newbie

            Hi All,

            When trying to stop weblogic server, I am getting following exception

            Stopping WebServices server...

            Exception in thread "main" javax.naming.CommunicationException: Could not
            obtain connection to any of these urls: VFHHTESTAPP:1299 [Root exception is
            javax.naming.CommunicationException: Failed to retrieve stub from server
            VFHHTESTAPP:1299 [Root exception is java.io.EOFException]]

            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)

            at javax.naming.InitialContext.lookup(InitialContext.java:347)

            at org.jboss.Shutdown.main(Shutdown.java:202)

            Caused by: javax.naming.CommunicationException: Failed to retrieve stub from
            server VFHHTESTAPP:1299 [Root exception is java.io.EOFException]

            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)

            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)

            ... 4 more

            Caused by: java.io.EOFException

            at
            java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)

            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)

            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:236)

            ... 5 more

            Cannot shutdown WebServices at this time. Please try again in a few minutes.




            Can any one help on this.

            --Regards
            Dhanunjay Reddy V