This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes JRun4 - Connection error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JRun4 - Connection error" Watch "JRun4 - Connection error" New topic

JRun4 - Connection error

Naga Sailaj

Joined: Apr 11, 2008
Posts: 2
Hi All,

I hope this is the suitable category to post.
We have a cluster of 2 servers on which jrun4 is installed. I am trying to do a simple lookup from a different client machine. I am running the following piece of code for it. Please see the code below:

When I run this java code from the client machine and try to connect to server 1 it gives the following error:
C:\>java TesthelloWorldEJB
Server is-->
Looking up for EJB->HelloWorldEJB/HelloWorldEJB
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException
: Connection refused to host:; nested exception is: Connection timed out: connect]
at jrun.naming.JRunNamingContext.lookup(
at jrun.naming.JRunNamingContext.lookup(
at javax.naming.InitialContext.lookup(Unknown Source)
Caused by: Connection timed out: connect
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
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 jrun.naming.ContextManager_Stub.invoke(Unknown Source)
at jrunx.cluster.ClusterAlgorithm.invokeService(
... 12 more

Even though we are trying to connect to, it is connecting to We figured out that the IP Address private IP Address of server (The heart beat address used by the cluster).

And, When we try to connect to the server2 on the cluster, from the same client it is succesfull.
Please help in solving this issue. Any help to resolve this issue would be appreciated.
Thanks in Advance.

Warm Regards,
Naga Sailaj.
I agree. Here's the link:
subject: JRun4 - Connection error
It's not a secret anymore!