I saw the post earlier about the java.security.AccessControlException in correlation with RMI. I'm having the same problem, except the fixes mentioned in that thread didn't work.
Right now I'm just trying to get a very simple RMI example from SUN's tutorial website to work. I start the registry, then try to execute the "server" using:
java -Djava.rmi.server.codebase=file://~/research/rmi_tutorial -Djava.rmi.server.hostname=localhost -Djava.security.policy=~/research/java.all.policy engine.ComputeEngine
The policy file contains:
grant{
permission java.security.AllPermission;
};
And the error I get contains:
ComputeEngine exception: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
If you can solve my problem, I will love you!
Thanks,
Eric
Right now I'm just trying to get a very simple RMI example from SUN's tutorial website to work. I start the registry, then try to execute the "server" using:
java -Djava.rmi.server.codebase=file://~/research/rmi_tutorial -Djava.rmi.server.hostname=localhost -Djava.security.policy=~/research/java.all.policy engine.ComputeEngine
The policy file contains:
grant{
permission java.security.AllPermission;
};
And the error I get contains:
ComputeEngine exception: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
If you can solve my problem, I will love you!
Thanks,
Eric