Configure the was.policy file

Java 2 Security uses several policy files to determine the granted permission for each Java program. The was.policy file is a application-specific policy file for an enterprise application. It is embedded in the EAR file (META-INF/was.policy). You can find example was.policy files in the sample applications that are packaged with WebSphere Application Server.

The union of the permission contained in the java.policy file, server.policy file, the app.policy file, the application's was.policy file, and the permission specification of ra.xml file are applied to the enterprise application. The was.policy files are managed by the Websphere configuration and file replication services, so changes made in these files are replicated to other nodes in a Network Deployment cell.

If the default permissions for enterprise application are enough, no action is required. If an application must access a specific resource, you may need to update the was.policy file. Note that syntax errors in the policy file may cause the application server to fail to start.

To create or update the was.policy file for your application, See Create and edit policy files with the policy tool. After you have created the was.policy file, add it to your application. See Add the was.policy file to applications for more information.

Restart your enterprise application for the changes to take effect.