I am trying to implement Jav 2 Security for my application using
was.policy file. I am using following declaration :
grant codeBase "file:{application}" {
permission java.security.AllPermission;
};
Enabled the "Enforce Java 2 Security" for the server and started the
server successfully. It is giving me an AccessControllerException when
I try to run my application.
I thought "AllPermission" allows us to give all the permissions to an
enterprise application on the WebSphere Server.
Please let me know your experience on it.
Thanks in advance...
Gauzy
Hi All,
Where did you modify the was,policy ? I mean directory .
If you use the default values in the EAR deployment process, you
should change the was.policy stored on
$WAS_HOME/config/cells/$CELL_NAME/applications/$APP_NAME.ear/deployments/$APP_NAME/META-INF
.
if you have ND you must use the config directory of your ND .
After doind this , you must restart your App.Server.
Bye.