Sun JavaTM System Access Manager Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2, as with all J2EE agents in the 2.2 release of Policy Agent, is installed from the command line using the agentadmin program. For more information about the tasks you can perform with the agentadmin program, see Role of the agentadmin Program in a J2EE Agent for Policy Agent 2.2.
Before reading this chapter or performing any of the tasks described within, thoroughly review Chapter 2, Vital Installation Information for a J2EE Agent in Policy Agent 2.2 since various key concepts are introduced in that chapter.
This chapter is organized into the following sections:
Once you have completed the steps described in this chapter, complete the applicable post-installation tasks described in Chapter 4, Post-Installation Tasks of Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2.
Determine which type of installation you will perform and follow the instructions for that type of installation.
If you are installing Agent for BEA WebLogic Server/Portal 9.2 in a clustered environment, you must perform many of the steps explained in this chapter. However, see Chapter 5, Installing and Configuring Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2: Cluster. The installation and configuration of a clustered deployment is presented in that chapter combining specific tasks with generalized tasks. For the generalized tasks, you are directed to various locations in this guide to perform the more detailed steps required.
Before describing any tasks, this chapter provides you with installation-related information specific to BEA WebLogic Server/Portal 9.2. The subsequent sections lead you through the pre—installation and installation steps and describe how to view the installation log files. First, perform the pre-installation (preparation) steps. Then, perform the installation itself. The installation process has two phases. The first phase of the installation includes launching the installation program, which requires a directory to already have been selected for the agent files. The second phase of the installation involves interacting with the installation program. During this phase, the program prompts you step by step to enter information. Accompanying the prompts, are explanations of the type of information you need to enter. After you complete the installation, you can look at the installation log files.
The following sections provide important information about Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2 needed before you install the agent.
The following sections provide information about the supported platforms of Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2 as well as the compatibility of this agent with Access Manager.
This J2EE agent, which is referred to in this guide as Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2, supports all of the following BEA WebLogic servers:
BEA WebLogic Server 9.2
BEA WebLogic Portal 9.2
BEA WebLogic Express 9.2
The following table presents the platforms supported by Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2.Table 3–1 Platform and Version Support of Agent for BEA WebLogic Server/Portal 9.2
Supported Policy Agent Version
Supported Access Manager Versions
BEA WebLogic Server/Portal 9.2 (See preceding Note in reference to BEA WebLogic Express)
Version 6.3 Patch 1 or greater
SolarisTM Operating System (OS) for the SPARC® platform, versions 8, 9, and 10
Solaris (OS) for x86 platforms, versions 8, 9, and 10
Red Hat Enterprise Linux Advanced Server 3.0
Red Hat Enterprise Linux Advanced Server 4.0
Windows 2003, Enterprise Edition
Windows 2003, Standard Edition
Install the latest Access Manager 7 patches to ensure that all enhancements and fixes are applied. For information about the latest Access Manager 7 patches, see the compatibility information discussed in Sun Java System Access Manager Policy Agent 2.2 Release Notes.
All agents in Policy Agent 2.2 are also compatible with Access Manager 6.3 Patch 1 or greater. However, certain limitations apply. For more information, see J2EE Agent Backward Compatibility With Access Manager 6.3.
Detailed information about unpacking the distribution files for J2EE agents in Policy Agent 2.2 is covered in Chapter 2, Vital Installation Information for a J2EE Agent in Policy Agent 2.2. The best practice is to follow the detailed steps outlined in that chapter before you implement any steps outlined in this chapter.
The following examples provide quick details about the unpacking process. Furthermore, this section provides the opportunity to present again the cautionary note that follows about the GNU_tar program.
For .tar.gz archives, do not use a program other than GNU_tar to untar the contents of the J2EE agent deliverables. Using a different program, such as another tar program, can result in some files not being extracted properly. To learn more about the GNU_tar program, visit the following web site:
SJS_Weblogic_92_agent_2.2_SUNWamwl.tar.gz SJS_Weblogic_92_agent_2.2.tar.gz SJS_Weblogic_92_agent_2.2.zip
For detailed information on the format of the distribution files, see Format of the Distribution Files for a J2EE Agent Installation in Policy Agent 2.2.
# gzip -dc SJS_Weblogic_92_agent_2.2.tar.gz | tar xvf -
For detailed information about this command, see To Unpack Non-Package Formatted Deliverables of a J2EE Agent in Policy Agent 2.2.
# gzip -dc SJS_Weblogic_92_agent_2.2_SUNWamwl.tar.gz | tar xvf -
For detailed information about this command, see To Unpack Package Formatted Deliverables of a J2EE Agent in Policy Agent 2.2.
For detailed information about this command, see To Unpack a .zip Compressed file of a J2EE Agent in Policy Agent 2.2.
Follow the specific steps outlined in the following section before you install the agent to reduce the chance of complications occurring during and after the installation.
Perform the following pre-installation tasks:
Ensure that the Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2 is supported on the desired platform as listed in Supported Platforms and Compatibility of Agent for BEA WebLogic Server/Portal 9.2.
Install BEA WebLogic Server/Portal 9.2 if not already installed.
For more information about BEA WebLogic Server/Portal 9.2, see the product documentation available at the following web site: http://www.bea.com/.
Create a server or portal domain
Using the configuration or domain wizard appropriate for your server version and operating system, create a new stand-alone server domain. Typically, the configuration wizard launch script or program is located in the respective directory as follows:
where DeployContainer-base represents the directory in which BEA WebLogic Server/Portal 9.2 was installed.
Shut down the BEA WebLogic Server/Portal 9.2 instance that will be protected by the agent.
Create a valid agent profile in Access Manager Console if one has not already been created.
For information on how to create an agent profile, see Creating a J2EE Agent Profile.
To avoid a misconfiguration of the agent, ensure that you know the exact ID and password used to create the agent profile. You must enter the agent profile password correctly in the next step and you must enter the agent profile ID correctly when installing the agent.
Ensure that this file is located in a secure directory of your choice. You will refer to this file during the agent installation process.
With the agent profile password in this file, stored in a secure location, you do not need to enter sensitive information in the command line. A valid password file can have only one line that contains the agent profile password.
You must decide what to do with this password file after the installation process is complete. You might choose to remove the file or provide restricted permissions to it. However, certain deployment-related tasks, such as installing multiple instances, require a password file. If you do remove the password file, create a new one if a future situation requires it.
Ensure that the ownership and group settings for the files in the Policy Agent base directory are correct.
The Policy Agent base directory is explained in more detail in J2EE Agent Directory Structure in Policy Agent 2.2 and Example 3–5. In summary, for this agent, Agent for BEA WebLogic Server/Portal 9.2, the Policy Agent base directory is named am_wl92_agent.
Often, such installations are performed by a user with root permissions. In these cases, the potential problems discussed subsequently in this step would not apply.
Therefore, if necessary, change the ownership of all the files in the Policy Agent base directory to the BEA WebLogic Server/Portal 9.2 installation user and change the group associated with these files to the same group associated with the BEA WebLogic Server/Portal 9.2 installation user.
For the agent installation to be successful, the BEA WebLogic Server/Portal 9.2 installation user must have write permissions to the files in the Policy Agent base directory. Furthermore, to help prevent permission problems, the ownership of all the files in the Policy Agent base directory should be changed to the BEA WebLogic Server/Portal 9.2 installation user. Otherwise, permission-related issues might occur, which can be as serious as BEA WebLogic Server/Portal 9.2 not starting.
Once you have performed all the pre-installation steps, you can launch the installation program as described in the following subsection.
To launch the installation program, perform the following steps:
Change to the following directory:
This directory contains the agentadmin program, which is used for installing a J2EE agent and for performing other tasks. For more information on the agentadmin program, see Role of the agentadmin Program in a J2EE Agent for Policy Agent 2.2.
Ensure that you are the BEA WebLogic Server/Portal 9.2 installation user.
Issue the following command:
(Conditional) If you receive license agreement information, accept or reject the agreement prompts. If you reject any portion of the agreement, the program will end.
The license agreement is displayed only during the first run of the agentadmin program.
After you issue the agentadmin command and accept the license agreement (if necessary), the installation program appears, prompting you for information.
The steps in the installation program are displayed in this section in an example interaction. Your answers to prompts can differ slightly or greatly from this example depending upon your specific deployment. In the example, most of the defaults have been accepted. This example is provided for your reference and does not necessarily indicate the precise information you should enter.
The following bulleted list provides key points about the installation program.
Each step in the installation program includes an explanation that is followed by a more succinct prompt.
For most of the steps you can type any of the following characters to get the results described:
Type the question mark to display Help information for that specific step.
Type the left arrow symbol to go back to the previous interaction.
Type the exclamation point to exit the program.
Most of the steps provide a default value that can be accepted or replaced. If a default value is correct for your site, accept it. If it is not correct, enter the correct value.
The following list provides information about specific prompts in the installation. Often the prompt is self explanatory. However, at other times you might find the extra information presented here to be very helpful. This extra information is often not obvious. Study this section carefully before issuing the agentadmin --install command.
The deployment URI for the agent application is required for the agent to perform necessary housekeeping tasks such as registering policy and session notifications, legacy browser support, and CDSSO support. Accept /agentapp as the default value for this interaction. Once the installation is completed, browse the directory PolicyAgent-base/etc. Use the agentapp.war file to deploy the agent application in the application container. Please note that the deployment URI for agent application during install time should match the deployment URI for the same application when deployed in the J2EE container.
This key is used to encrypt sensitive information such the passwords. The key should be at least 12 characters long. A key is generated randomly and provided as the default. You can accept the random key generated by the installer or create your own using the .agentadmin --getEncryptKey command.
For information about creating a new encryption key, see agentadmin --getEncryptKey.
An agent profile should have been created as a pre-installation step. The creation of the agent profile is mentioned in that section. For the pre-installation steps, see Preparing to Install Agent for BEA WebLogic Server/Portal 9.2. For the actual information on creating an agent profile, see Creating a J2EE Agent Profile.
In summary, the J2EE agent communicates with Access Manager with a specific ID and password created through an agent profile using Access Manager Console. For J2EE agents, the creation of an agent profile is mandatory. Access Manager uses the agent profile to authenticate an agent. This is part of the security infrastructure.
The J2EE password file should have been created as a pre-installation step. For the pre-installation steps, see Preparing to Install Agent for BEA WebLogic Server/Portal 9.2.
When the installation program prompts you for the password for the agent, enter the fully qualified path to this password file.
After you have completed all the steps, a summary of your responses appears followed by options that allow you to navigate through those responses to accept or reject them.
When the summary appears, note the agent instance name, such as agent-001. You might be prompted for this name during the configuration process.
About the options, the default option is 1, Continue with Installation.
If you are satisfied with the summary, choose 1 (the default).
If you want to edit input from the last interaction, choose 2.
If you want to edit input starting at the beginning of the installation program, choose 3.
If you want to exit the installation program without installing, choose 4.
You can edit your responses as necessary, return to the options list, and choose option 1 to finally process your responses.
This section includes an example installation interaction of Policy Agent 2.2 installed on a BEA WebLogic Server 9.2 instance (not on a BEA WebLogic Portal 9.2 instance). For an example interaction of Policy Agent 2.2 installed on a BEA WebLogic Portal 9.2 instance, see Appendix D, Installation and Configuration Specific to BEA WebLogic Portal 9.2. That appendix leads you through both the installation and configuration of the agent on BEA WebLogic Portal 9.2. By no means does either installation example represent a real deployment scenario.
The section following this example, Implications of Specific Deployment Scenarios in Agent for BEA WebLogic Server/Portal 9.2, explains specific deployment scenarios, such as installing the agent on multiple deployment container instances on the same domain. If any of these deployment scenarios apply to your deployment, you might need to respond to prompts in a specified manner during the installation as explained in that section. Review the explanations in that section before proceeding with the installation. Those explanations are divided into subsections as follows:
The following interaction serves as an example of an installation on BEA WebLogic Server 9.2 (not BEA WebLogic Portal 9.2). For an interaction example specific to BEA WebLogic Portal 9.2, see Installing Policy Agent 2.2 on BEA WebLogic Portal 9.2.
************************************************************************ Welcome to the Access Manager Policy Agent for BEA WebLogic 9.2 Platform. If the Policy Agent is used with Federation Manager services, User needs to enter information relevant to Federation Manager. ************************************************************************ Enter the path to the location of the script used to start the WebLogic domain. Please ensure that the agent is first installed on the admin server instance before installing on any managed server instance. [ ? : Help, ! : Exit ] Enter the Startup script location [/usr/local/bea/user_projects/domains/mydomain/startWebLogic.sh]: /usr/local/bea/user_projects/domains/serverdomain/startWebLogic.sh Enter the name of the WebLogic Server/Portal instance secured by the agent. [ ? : Help, < : Back, ! : Exit ] Enter the WebLogic Server/Portal instance name [myserver]: Enter the fully qualified host name of the server where Access Manager Services are installed. [ ? : Help, < : Back, ! : Exit ] Access Manager Services Host: subcompany22.company22.example.com Enter the port number of the Server that runs Access Manager Services. [ ? : Help, < : Back, ! : Exit ] Access Manager Services port : 58080 Enter http/https to specify the protocol used by the Server that runs Access Manager services. [ ? : Help, < : Back, ! : Exit ] Access Manager Services Protocol [http]: http Enter the Deployment URI for Access Manager Services. [ ? : Help, < : Back, ! : Exit ] Access Manager Services Deployment URI [/amserver]: Enter the fully qualified host name on which the Application Server protected by the agent is installed. [ ? : Help, < : Back, ! : Exit ] Enter the Agent Host name: employee.company22.example.com Enter the WebLogic home directory [ ? : Help, < : Back, ! : Exit ] Enter the WebLogic home directory [/usr/local/bea/weblogic92]: Enter true if the agent is being installed on a Portal domain [ ? : Help, < : Back, ! : Exit ] Is the agent being installed on a Portal domain ? [false]: false Enter the preferred port number on which the application server provides its services. [ ? : Help, < : Back, ! : Exit ] Enter the port number for Application Server instance : 7001 Select http or https to specify the protocol used by the Application server instance that will be protected by Access Manager Policy Agent. [ ? : Help, < : Back, ! : Exit ] Enter the Preferred Protocol for Application Server instance [http]: http Enter the deployment URI for the Agent Application. This Application is used by the agent for internal housekeeping. [ ? : Help, < : Back, ! : Exit ] Enter the Deployment URI for the Agent Application [/agentapp]: Enter a valid Encryption Key. [ ? : Help, < : Back, ! : Exit ] Enter the Encryption Key [KpsVJMr84cwd6OATx+UgLWHSCB8KWFVW]: Enter a valid Agent profile name. Before proceeding with the agent installation, please ensure that a valid Agent profile exists in Access Manager. [ ? : Help, < : Back, ! : Exit ] Enter the Agent Profile name: exampleagent Enter the path to a file that contains the password to be used for identifying the Agent. [ ? : Help, < : Back, ! : Exit ] Enter the path to the password file: /export/temp/passwordfile Enter true if the Agent is being installed on the same instance of Application Server on which Access Manager is deployed. Enter false if that is not the case. [ ? : Help, < : Back, ! : Exit ] Are the Agent and Access Manager installed on the same instance of Application Server ? [false]: ----------------------------------------------- SUMMARY OF YOUR RESPONSES ----------------------------------------------- Startup script location : /usr/local/bea/user_projects/domains/mydomain/startWebLogic.sh WebLogic domain name : myserver Access Manager Services Host : subcompany22.company22.example.com Access Manager Services Port : 58080 Access Manager Services Protocol : http Access Manager Services Deployment URI : /amserver Agent Host name : employee.company22.example.com WebLogic home directory : /usr/local/bea/weblogic92 Agent Installed on Portal domain : false Application Server Instance Port number : 7001 Protocol for Application Server instance : http Deployment URI for the Agent Application : /agentapp Encryption Key : KPsVJMr84cwd6OATx+UgLWHSCB8KWFVW Agent Profile name : exampleagent Agent Profile Password file name : /export/temp/passwordfile Agent and Access Manager on same application server instance : false Verify your settings above and decide from the choices below. 1. Continue with Installation 2. Back to the last interaction 3. Start Over 4. Exit Please make your selection : ************************************************************************ Welcome to the Access Manager Policy Agent for BEA WebLogic 9.2 Platform. If the Policy Agent is used with Federation Manager services, User needs to enter information relevant to Federation Manager. ************************************************************************
The following subsections apply to both BEA WebLogic Server 9.2 and BEA WebLogic Portal 9.2.
The subsections that follow refer to specific deployment scenarios involving Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2. These scenarios are likely to affect how you respond to prompts during the installation process. You might also need to perform additional configurations.
Once a J2EE agent is installed for a particular domain configuration directory, you can install the agent on more than one BEA WebLogic Server/Portal 9.2 instance associated with the same domain by running the agentadmin --install command. Once prompted to enter the appropriate server instance name, enter the domain configuration directory and unique instance name that will enable the agent to distinguish the first instance from consecutive instances.
Once a J2EE agent is installed for a specific domain, the J2EE agent binaries cannot be used on that same host for a different BEA WebLogic Server/Portal 9.2 domain. If you attempt to use previously installed J2EE agent binaries on the same host, but on a different domain, the installation fails.
J2EE agents associate a specific set of agent binaries with a particular domain for BEA WebLogic Server/Portal 9.2. If you want to install a J2EE agent on a different domain, unpack a new set of bits and copy them to a separate location before running the agentadmin --install command for the second domain.
The prompt illustrated in this section is presented by the installer of Agent for BEA WebLogic Server/Portal 9.2. However, at the time of the release of this agent, installing Access Manager on BEA WebLogic Server/Portal 9.2 is not supported. Until that support is in place, ensure the following apply:
Do not install this agent and Access Manager on the same container.
Accept the default response of false for this prompt.
Once this collocation scenario is supported, if Agent for BEA WebLogic Server/Portal 9.2 and Access Manager are installed on the same container, enter true for the following prompt:
Enter true if the Agent is being installed on the same instance of Application Server on which Access Manager is deployed. Enter false if that is not the case. [ ? : Help, < : Back, ! : Exit ] Are the Agent and Access Manager installed on the same instance of Application Server ? [false]: true
The summary illustrated in this section is more specific to BEA Weblogic 9.2 Server. However, the information is relatively generic and applies, more or less, to all J2EE agents in thePolicy Agent 2.2 software set, including BEA Weblogic 9.2 Portal. For an agent installation summary more specific to BEA Weblogic 9.2 Portal, see the summary included with the BEA WebLogic Portal 9.2 installation example in Installing Policy Agent 2.2 on BEA WebLogic Portal 9.2.
At the end of the installation process, the installation program prints the agent installation summary, which indicates the status of the installation along with the installed J2EE agent information. The information that the program displays can be very useful. For example, the program displays the agent instance name, which is needed when configuring a remote instance. The program also displays the location of specific files, which can be of great importance. In fact, you might want to view the installation log file once the installation is complete, before performing the post-installation steps as described in Chapter 4, Post-Installation Tasks of Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2.
The location of directories displayed by the installer are specific. However, throughout this guide and specifically in the two summaries of the agent Installation, PolicyAgent-base is used to describe the directory where the distribution files are stored for a specific J2EE agent.
The following example serves as a quick description of the location of the J2EE agent base directory (PolicyAgent-base) of Policy Agent 2.2 for BEA WebLogic Server/Portal 9.2.
The following directory represents PolicyAgent-base of Agent for BEA WebLogic Server/Portal 9.2:
where Agent-HomeDirectory is the directory you choose in which to unpack the J2EE agent binaries.
Information regarding the location of the J2EE agent base directory is explained in detail in Location of the J2EE Agent Base Directory in Policy Agent 2.2.
The following type of information is printed by the installer:
SUMMARY OF AGENT INSTALLATION ----------------------------- Agent instance name: agent_001 Agent Configuration file location: PolicyAgent-base/agent_001/config/AMAgent.properties Agent Audit directory location: PolicyAgent-base/agent_001/logs/audit Agent Debug directory location: PolicyAgent-base/agent_001/logs/debug Install log file location: PolicyAgent-base/logs/audit/install.log Thank you for using Access Manager Policy Agent
Once the agent is installed, the directories shown in the preceding example are created in the agent_00x directory, which for this example is specifically agent_001. Those directories and files are briefly described in the following paragraphs.
Location of the J2EE agent AMAgent.properties configuration file for the agent instance. Every instance of a J2EE agent has a unique copy of this file. You can configure this file to meet your site's requirements. For more information, see the following sections:
Location of the J2EE agent local audit trail.
Location of all debug files required to debug an agent installation or configuration issue.
Location of the file that has the agent install file location. If the installation failed for any reason, you can look at this file to diagnose the issue.