I am getting exception when I am trying to connect to JBoss Messaging (running 
on JBoss AS) from a remote client. I am running a simple pub/sub application. 
No problems arise when my client is on the same host as JBoss AS. But from 
remote system, I get this problem. The exception is pasted below:


Exception in thread "main" javax.naming.CommunicationException [Root exception 
is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested 
exception is:
        java.net.ConnectException: Connection refused: connect]
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at com.ca.reif.poc.jms.JMSFactory.(JMSFactory.java:43)
        at com.ca.reif.poc.jms.JMSFactory.createJMSFactory(JMSFactory.java:55)
        at com.ca.reif.poc.sample.Main.(Main.java:39)
        at com.ca.reif.poc.sample.Main.main(Main.java:52)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; 
nested exception is:
        java.net.ConnectException: Connection refused: connect
        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:627)
        ... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        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 
Source)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown 
Source)
        ... 12 more


Please help me.... !!!!!URGENT!!!!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099131
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to