ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/sec/crtclass.htm

56 lines
4.8 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>Create a classes subdirectory in your instance for custom classes</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="crtclass"></a>Create a classes subdirectory in your instance for custom classes</h4>
<p>The directory structure of WebSphere Application Server - Express for iSeries differs from WebSphere Application Server - Express on other platforms. On the iSeries system, WebSphere Application Server - Express resides in two main directories:</p>
<ul>
<li><p><strong>/QIBM/ProdData/WebASE51/ASE</strong>
<br>Contains product JAR files, scripts, and the master copies of the administrative application, samples, and properties files. These directories are referred to as <tt>${WAS_INSTALL_ROOT}</tt>. It is recommended that you never modify files in these directories.</p></li>
<li><p><strong>/QIBM/UserData/WebASE51/ASE</strong>
<br>Contains user instance data, which are a combination of unique files and symmetric links to files in the ProdData directories. When you create an application server instance, a subdirectory with your instance name is created, and the files that define your instance are placed in it. The subdirectory that contains an instance, such as /QIBM/UserData/WebASE51/ASE/<em>instance</em> (where <em>instance</em> is the name of your instance) is referred to as <tt>${USER_INSTALL_ROOT}</tt>.</p></li>
</ul>
<p>The reason for this separation of product files is two-fold:</p>
<ul>
<li>To separate files that run the product from files that can be modified (either by editing or through the administrative interfaces) by the user. The separation better ensures that product fixes do not overwrite user-defined data, such as modifications to properties files.</li>
<li>To isolate configuration differences between instances. For example, each instance subdirectory can have its own copy of the Java 2 Security files, which allows the instance to have a unique Java 2 Security configuration, rather than all instances conforming to only one product-wide configuration.</li>
</ul>
<p>WebSphere Application Server - Express provides application programming interfaces (APIs) that you can use to develop your own WebSphere security components. For example, you can create custom user registries. For other WebSphere Application Server - Express platforms, it is recommended that you place the files for your custom security component in the <tt>${WAS_INSTALL_ROOT}/classes</tt> directory, which specified in the application server classpath. This is not recommended for the iSeries platform. On iSeries, <tt>${WAS_INSTALL_ROOT}/classes</tt> equates to the /QIBM/ProdData/WebASE51/ASE/classes directory. Placing custom files in this directory means that the files are accessible from all server instances, which may not be a desirable or secure behavior.</p>
<p>Therefore, it is recommended that you create a classes subdirectory in your instance in which you can place your custom security components. Additionally, the QEJBSVR user profile must have authority to the directory.</p>
<p>To create the classes subdirectory and grant the necessary authorities, run the following command from the iSeries command line:</p>
<pre> CRTDIR DIR('/QIBM/UserData/WebASE51/ASE/<em>instance</em>/classes')</pre>
<p>where <em>instance</em> is the name of your instance. For example, if you want to create a classes subdirectory for an instance named <tt>myInst</tt>, run the following command:</p>
<pre> CRTDIR DIR('/QIBM/UserData/WebASE51/ASE/myInst/classes')</pre>
<p>Alternatively, you can map or mount a workstation network drive to the iSeries server and create the classes subdirectory from the workstation command prompt or a graphical file explorer utility (such as Windows Explorer).</p>
<p>If you are using Java 2 Security, updated your <tt>${USER_INSTALL_ROOT}/properties/server.policy</tt> file to grant the appropriate Java 2 Security permissions to the classes in the directory. For more information about the permissions, see <a href="seccj2se.htm">Configure the server.policy file</a>.</p>
<p><strong>Note:</strong> If you create the directory from the Qshell command line, the proper authorities are not inherited from the parent directory. You must then explicity grant the QEJBSVR user profile read, write, and execute (*RWX) authority to the directory. For example, run the following command:</p>
<pre> CHGAUT OBJ('<em>directory</em>') USER(QEJBSVR) DTAAUT(*RWX)</pre>
<p>where <em>directory</em> is the fully qualified path of the classes subdirectory in your instance.</p>
</body>
</html>