This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
jQuery in Action, 2nd edition
 
subject: Exception when servlet is an RMI client?