Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.io.FilePermission - access denied

843793Sep 22 2004 — edited Sep 23 2004
My 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2004
Added on Sep 22 2004
2 comments
190 views