Application Server 1 must be stopped when you install J2EE Policy Agent 1.
You must stop both the Application Server 1 instance and the administration server before installing J2EE Policy Agent 1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ # ./stopManagedWebLogic.sh ApplicationServer-1 t3://localhost:7001 # cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopWebLogic.sh |
Unpack the J2EE Policy Agent bits.
# cd /opt # /usr/sfw/bin/gtar -xvf /export/software/SJS_Weblogic_9_agent_2.2.tar |
Start the J2EE Policy Agent installer.
# cd /opt/j2ee_agents/am_wl9_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-1. |
||
|
Enter LoadBalancer-3.example.com. |
||
|
Enter 90. |
||
|
Enter http. |
||
|
Accept the default value. |
||
|
ProtectedResource-1.example.com |
||
|
Enter /usr/loca/bea/weblogic91. |
||
|
Enter 1081. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter j2eeagent-1. |
||
|
Enter /opt/j2ee_agent/am_w19_agent/agent_pwd. |
||
|
Accept the default value. |
||
|
Accept the default value. |
The J2EE Policy Agent installer creates a new file in the Application Server bin directory:
/usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ setAgentEnv_ApplicationServer-1.sh |
Modify the Application Server startup script to reference the new file.
As a root user, log into ProtectedResource–1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ |
Make a backup of setDomainEnv.sh.
In setDomainEnv.sh, insert the following line at the end of the file:
. /usr/local/bea/user_projects/domains/ProtectedResource-1/ bin/setAgentEnv_ApplicationServer-1.sh |
This command references the file the installer created in the Application Server bin directory.
Save the setDomainEnv.shfile.
Change permissions for the setAgentEnv_ApplicationServer-1.sh file:
# chmod 755 setAgentEnv_ApplicationServer-1.sh
Start the Application Server administration server.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # nohup ./startWebLogic.sh & # tail -f nohup.out |
Watch for startup errors.