ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/sec/seccj2se.htm

54 lines
2.3 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Configure the server.policy file</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h5><a name="seccj2se"></a>Configure the server.policy file</h5>
<p>The server.policy file is a default policy file for the server. If the default permissions for the server are adequate, no action is required. If a specific change is required to some of the server programs on a node, update the server.policy file. If you want to add permissions to an application, use the app.policy and was.policy files.</p>
<p>If some server programs on a node require permissions that are not defined as defaults in the java.policy file and the server.policy file, use the policy tool to update the server.policy file. To decide whether to add a permission, see <a href="secj2ace.htm">AccessControlException</a>.</p>
<p>The server.policy file is located in the /QIBM/UserData/WebASE/ASE5/<em>instanceName</em>/properties directory where <em>instanceName</em> is the name of your instance. It contains these default permissions:</p>
<pre> grant codeBase &quot;file:${was.install.root}/java/extlib/-&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:${was.install.root}/java/tools/ibmtools.jar&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:/QIBM/ProdData/Java400/jdk13/lib/tools.jar&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:${was.install.root}/lib/-&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:${was.install.root}/classes/-&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:${was.install.root}/deploytool/-&quot; {
permission java.security.AllPermission;
};</pre>
<p>Use the policy tool to modify the server.policy file. For more information, see <a href="seccupol.htm">Create and edit policy files with the policy tool</a>.</p>
<p>After you have updated the server.policy file, restart all of the Java processes for the updated server.policy file to take effect.</p>
</body>
</html>