java.security.AccessControlException: access denied websphere
Problem:
After enabling global security in WebSphere, all access to file system resources from the web app gives "AccessControlException" messages. The application can't load it's properties file(s).
Solution:
I actually found this solution pretty quickly with a google search. Need to turn off "Java 2 Security" in the Global Security settings or define a policy that allows your application access to the resources it needs.
To disable "Java 2 Security"
- Open the administrative console and go to Security-->Gloabal Security
- Uncheck "Enforce Java 2 Security"
- Save the changes and restart WebSphere
- This is a little bit more complex, See: Configuring Java 2 security policy files
- It may help to know how to grant everything
grant { java.security.AllPermissions; }
No comments:
Post a Comment