[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: A few problems running the examples on different machine

timfox do-not-reply at jboss.com
Sat May 10 08:39:39 EDT 2008


I just did the following:

ant clean
ant distro
cd build/messaging-2.0.0.alpha1/docs/examples/jms/etc
vi jndi.properties
[changed ip address of server to 192.168.0.51 - my server]
cd ..
ant queueExample

and I get:


  | queueExample:
  |      [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
  |      [java]     java.net.ConnectException: Connection refused]
  |      [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:782)
  |      [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
  |      [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |      [java]     at org.jboss.jms.example.QueueExample.main(QueueExample.java:47)
  |      [java] Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
  |      [java]     java.net.ConnectException: Connection refused
  |      [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
  |      [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
  |      [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
  |      [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
  |      [java]     at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
  |      [java]     at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
  |      [java]     at $Proxy0.lookup(Unknown Source)
  |      [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
  |      [java]     ... 3 more
  |      [java] Caused by: java.net.ConnectException: Connection refused
  |      [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
  |      [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  |      [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  |      [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  |      [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  |      [java]     at java.net.Socket.connect(Socket.java:520)
  |      [java]     at java.net.Socket.connect(Socket.java:470)
  |      [java]     at java.net.Socket.<init>(Socket.java:367)
  |      [java]     at java.net.Socket.<init>(Socket.java:180)
  |      [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
  |      [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
  |      [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd
  | 

Any ideas what I am doing wrong.

The core client test SimpleClient works ok as long as I manually change the hardcoded server address in the Location object

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

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



More information about the jboss-dev-forums mailing list