Oops, I figured it out. My classes aren't
being loaded from the classpath, they have to be copied to an obscure directory
for some reason.
----- Original Message -----
Sent: Wednesday, April 19, 2000 3:50
PM
Subject: Security problems with RMI and
Orion
I have a servlet that tries to call an RMI
method. The RMI method tries to return a serializable object. I
receive this error:
java.rmi.UnmarshalException: error unmarshalling
return; nested exception is:
java.lang.ClassNotFoundException: com.sun.xml.tree.XmlDocument (no
secur ity manager: RMI class loader
disabled) java.lang.ClassNotFoundException: com.sun.xml.tree.XmlDocument
(no security mana ger: RMI class loader
disabled) at
sun.rmi.server.LoaderHandler.loadClass(Unknown
Source) at
sun.rmi.server.LoaderHandler.loadClass(Unknown
Source) at
sun.rmi.server.MarshalInputStream.resolveClass(Unknown
Source) at
java.io.ObjectInputStream.inputClassDescriptor(Unknown
Source) at
java.io.ObjectInputStream.readObject(Unknown
Source) at
java.io.ObjectInputStream.readObject(Unknown
Source) at
java.io.ObjectInputStream.inputObject(Unknown
Source) at
java.io.ObjectInputStream.readObject(Unknown
Source) at
java.io.ObjectInputStream.readObject(Unknown
Source) at
sun.rmi.server.UnicastRef.unmarshalValue(Unknown
Source) at
sun.rmi.server.UnicastRef.invoke(Unknown
Source) at
com.mongoosetech.mojo.MojoAgentServices_Stub.getDocument(MojoAgentSer vices_Stub.java:230)
at
com.mongoosetech.mojo.BasicMWO.doRefreshAction(BasicMWO.java:79)
at
com.mongoosetech.mojo.BasicMWO.doMainAction(BasicMWO.java:63)
at java.lang.reflect.Method.invoke(Native
Method) at
com.mongoosetech.portal.DispatcherServlet.service(DispatcherServlet.j ava:279)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:324)
at
com.evermind.server.http.c1.l_(JAX)
at
com.evermind.server.http.c1.forward(JAX)
at
com.evermind.server.http.dc.ca(JAX)
at com.evermind.util.b.run(JAX)
It seems that the security manager isn't
running. How do I get it started?
|