[jboss-user] [JBoss Messaging] - Re: Error when running clusters in two different machines.

ebenezerlovelin do-not-reply at jboss.com
Tue Jun 17 15:41:36 EDT 2008


Hi, 

I was able to start the two servers with out any problem.  Now when I try to run the examples in the JBoss Messaging, it fails.  

I was trying to run the distributed queue example.  
I have two machine (192.168.200.151 &  192.168.200.124) and have two nodes (node0 & node1).  

Node0 is in 192.168.200.151 and Node1 is in 192.168.200.124.  I am running the client in node0 and I am trying to connect to the queue in the node 2 (In the jndi.property file, I gave java.naming.provider.url=jnp://192.168.200.124:1199)

I get this error run:
  |      [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: 192.168.200.124:1199 and discovery failed with error: javax.naming.CommunicationException: Failed to
  | connect to server 127.0.0.1:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1100 [Root exception is java.net.ConnectException: Connection refuse
  | d: connect]] [Root exception is javax.naming.CommunicationException: Failed to connect to server 192.168.200.124:1199 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to
  | server 192.168.200.124:1199 [Root exception is java.net.ConnectException: Connection timed out: connect]]]
  |      [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
  |      [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
  |      [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
  |      [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |      [java]     at org.jboss.example.jms.common.Util.doesDestinationExist(Util.java:55)
  |      [java]     at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:214)
  |      [java]     at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:194)
  |      [java]     at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:146)
  |      [java]     at org.jboss.example.jms.distributedqueue.DistributedQueueExample.main(DistributedQueueExample.java:191)
  |      [java] Caused by: javax.naming.CommunicationException: Failed to connect to server 192.168.200.124:1199 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 19
  | 2.168.200.124:1199 [Root exception is java.net.ConnectException: Connection timed out: connect]]
  |      [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
  |      [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
  |      [java]     ... 8 more
  |      [java] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.200.124:1199 [Root exception is java.net.ConnectException: Connection timed out: connect]
  |      [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
  |      [java]     ... 9 more
  |      [java] Caused by: java.net.ConnectException: Connection timed out: connect
  |      [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:267)
  |      [java]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
  |      [java]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
  |      [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
  |      [java]     ... 9 more
  |      [java]
  |      [java] #####################
  |      [java] ###    FAILURE!   ###
  |      [java] #####################

Am I missing something in the configuration?  

Thanks, 
Ebe

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

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



More information about the jboss-user mailing list