java.io.FilePermission - access denied
843793Sep 22 2004 — edited Sep 23 2004My server starts fine, the Impl class gets bound to the registry OK, and I am using a simple policy file of:
grant {
permission java.security.AllPermission "", "";
}
I start rmiregistry, rmid and my Impl class with the following property:
-J-Djava.security.policy=$SPOLICY
where $SPOLICY is the path to my security file.
I started getting an ambiguous "Could Not Connect to Host" error, so when I turned on logging for rmid, I noticed the following error in the rmid output file:
ExecGroup-0:err:Caused by: java.security.AccessControlException:
access denied (java.io.FilePermission /Server/logs/default.log write)
I figured the catch-all security policy file would prevent permissions, but I also gave RW access to the file and all parent folders. Why would I get this error?
Thanks,
Jeff