Hi all,

I've been running into problems with RMI and servlets.  My setup is apache
1.3.6, jserv 1.0, windows NT, and running JDK 1.2 with Hotspot 1.0fcs.

In my situation the servlet is an RMI client.  I get the UnmarshalException
saying that the Stub is not found

Exception in doPost(): java.rmi.UnmarshalException: error unmarshalling
return; nested exception is: java.lang.ClassNotFoundException:
com.nortel.pelican.prototype.ServiceLocator_Stub
java.lang.ClassNotFoundException:
com.nortel.pelican.prototype.ServiceLocator_Stub at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:981) ...

The servlet runs fine as an application, i can dynamically load the stub and
everything.  Only when it's in servlet mode is there the problem.  I have to
put the stub in the servlet's classpath

I'm pretty sure that the java.rmi.server.codebase property is done right on
the server side.
rmiregistry was started without a classpath.

The only thing i can see different is that servlets run under a
ServletSecurityManager while applications run under the RMISecurityManager.
Is this the source of my problems?  If it is, is there anyway to get around
this?  If i'm missing some other point, could someone lend me a hand?
Thanks in advance.

-andy

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to