Security Policy trouble !!!

Hi,

I'm facing lot of problems with the Java Security policy. I just cant seem to over ride it ! I want to run a simple server program using RMI. At first I used to get the error :

java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1024 connect,resolve)

Later, I created a "java.policy" file whose contents are:

/* AUTOMATICALLY GENERATED ON Tue Sep 14 18:15:27 BDT 2005*/

/* DO NOT EDIT */

grant{

permission java.security.AllPermission;

};

and I saved this file in my server programs folder and ran the server program with the following command:

java -Djava.security.policy=java.policy -Djava.rmi.server.codebase=file:///c:\rmi\server\ MyServer

Now I get this strange exception:

java.rmi.ServerException: Server RemoteException; nested exception is:java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:java.lang.ClassNotFoundException: MyServer_Stub

Pls Help !!! Any sorta help wud b greatly appreciated.

Thanx in advance

[1232 byte] By [Dsyphera] at [2007-10-1 23:59:11]
# 1
Why do you think this is a security problem when the exception is explicitly complaining about being unable to find the class MyServer_Stub?Have you included the class files for MyServer_Stub in the classpath, or at the codebase?Dave.
dcmintera at 2007-7-15 15:53:15 > top of Java-index,Core,Core APIs...