1 Reply Latest reply on Nov 4, 2008 7:23 PM by Peter Johnson

    Could not obtain connection to any of these urls: localhost:

    Kevin Dunbar Newbie

      When trying to run the helloworld quickstart, 'ant deploy' builds successfully but when running 'ant runtest', I get the following error:

      runtest:
      [echo] Runs Test JMS Sender
      [java] Exception in thread "main" javax.naming.CommunicationException: Coul
      d not obtain connection to any of these urls: localhost:1099 and discovery faile
      d with error: javax.naming.CommunicationException: Receive timed out [Root excep
      tion is java.net.SocketTimeoutException: Receive timed out] [Root exception is j
      avax.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]]]
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1562)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:63
      4)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
      7)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
      essage.setupConnection(SendJMSMessage.java:52)
      [java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
      essage.main(SendJMSMessage.java:81)
      [java] Caused by: javax.naming.CommunicationException: Failed to connect to
      server localhost:1099 [Root exception is javax.naming.ServiceUnavailableExcepti
      on: Failed to connect to server localhost:1099 [Root exception is java.net.Conne
      ctException: Connection refused: connect]]
      [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :274)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1533)
      [java] ... 5 more
      [java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne
      ct to server localhost:1099 [Root exception is java.net.ConnectException: Connec
      tion refused: connect]
      [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :248)
      [java] ... 6 more



      Does this mean that port 1099 is blocked?

      Thank you for any help.

      Kevin