This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Exception when servlet is an RMI client? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Exception when servlet is an RMI client?" Watch "Exception when servlet is an RMI client?" New topic
Author

Exception when servlet is an RMI client?

Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

Hi all,
Why is it when i try to use a servlet as a client in RMI i get the following:



But when i use a none servlet client with the EXACT same code everything runs smoothly?
I can assure you that the stub and the interface and everything else is in the lib dir of the web app.

Please help.

Best Regards.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

Live life to an interface, not an implementation!
Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

Never mind, i solved the mystery. I'm not 100% sure what it was, because all i did was add a layer of abstraction with an intermediate object which took care of the RMIness, instead of the servlet itself.

Thanks and regards.
 
wood burning stoves
 
subject: Exception when servlet is an RMI client?
 
Similar Threads
RMI * java.net.ConnectException * occurs when client on remote computer
RMI Problem
RMI Over SSL issue: Getting an exception when servlet invokes the client
How dose a RMI server guarantee that return object can be sent back to client?
Servlet - RMI Error