You can give grant all security in the policy file OR a sample policy file as below
grant {
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.net.SocketPermission "*:80", "connect";
};
Note: Above, pasted from java.sun.com/docs/books/tutorial/rmi/running.html
Remember, if client is running on a separate machine, You need a policy for both machines. rmi claims to download stub files and policy file remotely but it doesn't do this in reality, this leads to such confusions.