I am a new RMI comer and right now I need help regarding RMI. Please
help if anyone know how to solve this problem :
Server side :
both ServerRemoteImpl_Stub.class and ServerRemoteImpl_Skeleton.class
exist, rmiregistry started, policy already defined using policytool
(all permission granted), server already started, ServerRemote
interface already bind using this :
Naming.rebind("ServerRemote", app);
where app is a ServerRemoteImpl instance
Client side :
Exception thrown in this block
try {
server = (ServerRemote) Naming.lookup("rmi://serverIP/ServerRemote");
} catch(Exception e) { }
where serverIP is valid IP address for server (xxx.xxx.xxx.xxx)
The exception was :
error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException:
sars.server.ServerRemoteImpl_Stub (no security manager: RMI class
loader disabled)
What's wrong, and how to fix it???