1 Reply Latest reply on Apr 30, 2009 6:13 PM by Peter Johnson

    javax.naming.CommunicationException connecting to server

    Naveen Yeturi Newbie

      Hello,

      I am running the jboss server on linux m/c using
      /opt/jboss-5.0.1.GA/bin/run.sh -b 0.0.0.0

      I am trying to connect to server using a JMS client pgm for placing msg in JMS queue defined in server

      Getting the below error and the url context property is set to
      p.put(Context.PROVIDER_URL, "jnp://10.1.100.10:1099");
      Please let me know if anything I am missing here

      javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostExcep
      tion: Unknown host: CUE-Dev1; nested exception is:
      java.net.UnknownHostException: CUE-Dev1]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:835)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)

      at javax.naming.InitialContext.lookup(Unknown Source)
      at PutTestMsgInQ.main(PutTestMsgInQ.java:29)
      Caused by: java.rmi.UnknownHostException: Unknown host: CUE-Dev1; nested excepti

      on is:
      java.net.UnknownHostException: CUE-Dev1
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
      ... 3 more
      Caused by: java.net.UnknownHostException: CUE-Dev1

      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.(Unknown Source)
      at java.net.Socket.(Unknown Source)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
      ource)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
      ource)
      ... 9 more