Operating Systems: i5/OS
             Personalize the table of contents and search results

This topic applies only on the i5/OS operating system.

 

Create a classes subdirectory in your profile for custom classes

 

You can create a classes subdirectory in the profile in which you can place your custom security components.

 

Overview

WebSphere Application Server resides in two main default directories:

app_server_root

Contains product Java archive (JAR) files, scripts, and the master copies of the administrative application, samples, and properties files. This directory is referred to by the ${WAS_INSTALL_ROOT} WebSphere Application Server variable. Do not modify files in these directories.

profile_root

Contains user profile data, that is a combination of unique files and symmetric links to files in the app_server_root directories. This directory is referred to by the ${USER_INSTALL_ROOT} WebSphere Application Server variable.
The product files are separated for the following reasons:

WebSphere Application Server provides application programming interfaces (APIs) used to to develop your own security components for WebSphere Application Server. For example, you can create custom user registries, custom trust association interceptors, and custom login modules. For other WebSphere Application Server platforms, place the files for your custom security component in the app_server_root/classes directory.

For the i5/OS platform, this action is not recommended because the files are accessible from all server profiles, which might not be a desirable or secure behavior. Additionally, the classes directory is granted Java 2 Security AllPermissions authority, which might not be appropriate for your secured environment.

Therefore, create a /classes subdirectory in the profile in which you can place your custom security components. Additionally, the QEJBSVR user profile must have authority to the directory. To create the classes subdirectory and grant the necessary authorities, complete the following steps:

 

Procedure

  1. Use the CRTDIR DIR command to create the classes subdirectory. For example, run the following command from the CL command line:

    CRTDIR DIR('profile_root/classes')
    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.

  2. If you are using Java 2 Security, update your profile_root/properties/server.policy file to grant the appropriate Java 2 Security permissions to the classes in the directory. For more information about the permissions, see server.policy file permissions.

  3. If you create the directory from the Qshell command line, explicitly grant the QEJBSVR user profile read, write, and run (*RWX) authority to the directory because the proper authorities are not inherited from the parent directory. For example, run the following command:

    CHGAUT OBJ('profile_root/classes') USER(QEJBSVR) DTAAUT(*RWX)

    The directory variable is the fully qualified path of your profile_root/classes subdirectory.

 

Results

You have a classes subdirectory used to for custom classes.


}

 

Related tasks


Developing standalone custom registries

 

Related Reference


server.policy file permissions