[jboss-user] [Installation, Configuration & DEPLOYMENT] - javax.naming.CommunicationException connecting to server

naveentcs do-not-reply at jboss.com
Thu Apr 30 17:08:49 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227914#4227914

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227914



More information about the jboss-user mailing list