Problem to handle files with RMISecurityManager
1 posts in topic
Flat View  Flat View

Posted By:   larreur_elsa
Posted On:   Thursday, February 7, 2002 07:11 AM

I want the client to get information from files on the server.
When I put a RMISecurity, with the specific policy :


I have this message :
AccessµControlException : access denied (FilePermission myFile read)

I dont understand because I have allowed all.

Re: Problem to handle files with RMISecurityManager

Posted By:   Saleem_Dawoodi  
Posted On:   Tuesday, February 12, 2002 03:56 PM

What I would do is, put that in the policy file too. Make sure that your policy file is ACTUALLY being used by the Security Manager when you start your JVM. In other words make sure that your the value of -Djava.security.policy actually points to your java.policy file.

Hope that helps.
About | Sitemap | Contact