Why and when to perform this task
Java 2 security uses several policy files to determine the granted permission for each Java program. See Java 2 security policy files for the list of available policy files supported by WebSphere Application Server Version 6.0.x.Since the default permissions for Service Provider Interface (SPI) is AllPermission, the only reason to update the spi.policy file is a restricted SPI permission. When a change in the spi.policy is required, complete the following steps.
Syntax errors in the policy files cause the application server to fail. Edit these policy files carefully.
Steps for this task
Result
The updated spi.policy is applied to the SPI libraries after the Java process is restarted.Example
spi.policyresources.xmlspi.policyresources.xmljava.policyspi.policyspi.policygrant {
permission java.security.AllPermission;
};
What to do next
Restart the related Java processes for the changes in the spi.policy file to become effective.Related concepts
Java 2 security policy files
Related tasks
Configuring the was.policy file
Configuring server.policy files
Configuring java.policy files
Using Policy Tool to edit policy files
Adding the was.policy file to applications