You must stop both the WebLogic Server 2 managed instance and the WebLogic Server 2 administration server before beginning the installation process.
As a root user, log into the ProtectedResource–2 host machine.
Stop the WebLogic Server 2 administration server and the WebLogic Server 2 managed instance.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin # ./stopManagedWebLogic.sh ApplicationServer-2 t3://localhost:7001 # ./stopWebLogic.sh |
Ensure that your system is properly patched.
Read the appropriate policy agent Release Notes for your web container to determine the latest patches you might need to install before beginning installation. In this case, no patch is required.
You can search for patches directly at http://sunsolve.sun.com. Navigate to the PatchFinder page, enter the patch number, click Find Patch, and download the appropriate patch.
Change into the J2EEPA2 directory.
# cd /export/J2EEPA2 |
Download the J2EE policy agent bits for WebLogic Server from http://www.sun.com/download/index.jsp.
# ls -al total 8692 drwxr-xr-x 2 root root 512 Sep 13 13:19 . drwxr-xr-x 5 root sys 512 Aug 13 17:08 .. -rw-r--r-- 1 root root 4433920 Sep 13 13:19 SJS_Weblogic_92_agent_2.2.tar |
Unpack the J2EE policy agent bits.
# /usr/sfw/bin/gtar -xvf /export/J2EEPA2/SJS_Weblogic_92_agent_2.2.tar |
Use the gtar command and not the tar command.
Run the J2EE policy agent installer.
# cd /export/J2EEPA2/j2ee_agents/am_wl92_agent/bin # ./agentadmin --install |
When prompted, provide the following information.
|
Press Enter to continue. Continue to press Enter until you reach the end of the License Agreement. |
||
|
Enter .
|
||
|
Enter ApplicationServer-2. |
||
|
Enter LoadBalancer-3.example.com. |
||
|
Enter 7070. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
ProtectedResource-2.example.com |
||
|
Accept the default value. |
||
|
Accept false, the default value. |
||
|
Enter 1081. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
j2eeagent-2 |
||
|
Enter /export/J2EEPA2/agent.pwd. |
||
|
Accept the default value. |
||
|
Accept the default value. |
The installer runs and, when finished, creates a new file in the bin directory called setAgentEnv_ApplicationServer-2.sh.
Modify the startup script setDomainEnv.sh to reference setAgentEnv_ApplicationServer-2.sh.
Backup setDomainEnv.sh before you modify it.
Change permissions for setAgentEnv_ApplicationServer-2.sh.
# chmod 755 setAgentEnv_ApplicationServer-2.sh |
Start the WebLogic Server administration server.
# ./startWebLogic.sh & |
Watch for startup errors.
Log out of the ProtectedResource–2 host machine.