This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes java.rmi.ConnectException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.rmi.ConnectException" Watch "java.rmi.ConnectException" New topic
Author

java.rmi.ConnectException

Ramen Chatterjee
Ranch Hand

Joined: Apr 27, 2006
Posts: 62
Hi Ranchers

Sorry to cover old ground, but I couldnt see any specific answer.

I have 2 Win XP pro machines (pc and laptop). Ultimately, I wish to invoke a web service running in oc4j 10.1.2 on machine A, that will delegate to a RMI client that will invoke a RMI server running in Tomcat 5 on machine B.

I have written an RMI server and RMI client. I run the RMI Server (machine B) on my pc. I can then invoke the service running the client as a standalone. Both are using a blanket 'anything goes' security policy. I see output at both ends - so far so good.

I next generated a web service from the RMI client using JDeveloper. I deployed the web service to oc4j running on machine A. The web service deploys fine, and I can invoke the service using the supplied oc4j forms. However, I get a java.rmi.ConnectException when doing the Naming.lookup() call.

FYI, I have overidden RMISecurityManager, although I am not sure this is the best approach. Below is what I believe to be the pertinent code. I presume this is a configuration issue but cant think what. Thank you all in adavnce for your help

Ramen


[ August 09, 2006: Message edited by: Ramen Chatterjee ]

Could try harder
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.rmi.ConnectException
 
Similar Threads
java.rmi.server.ExportException: Port already in use: 10344;
Exception in RMI program
Web Service Exception
JBoss:EJB is not creating table in MySQL DB
getting the time in milliseconds