By configuring the static policy files, the required permission will be granted for all of the Java programs.
See the topic about Java 2 security policy files for the list of available policy files that are supported by WebSphere® Application Server.
Policy file name | Description |
---|---|
java.policy | Contains default permissions for all of the Java programs on the node. This file seldom changes. |
server.policy | Contains default permissions for all of the WebSphere Application Server programs on the node. This file is rarely updated. |
client.policy | Contains default permissions for all of the applets and client containers on the node. |
java.security.AccessControlException: access denied (java.io.FilePermission
app_server_root/lib/mail-impl.jar read)
When a Java program receives this exception and adding this permission is justified, add a permission to an adequate policy file.
grant codeBase "file:user_client_installed_location" {
permission java.io.FilePermission
"app_server_root/Base/lib/mail-impl.jar",
"read";
};
To decide whether to add a permission, refer to Access control exception for Java 2 security.
In this information ...Subtopics
Related tasks
Related reference
| IBM Redbooks, demos, education, and more(Index) |