Sun Java System Access Manager Policy Agent 2.2 Guide for SAP Enterprise Portal 7.0 and Web Application Server 7.0

ProcedureTo Deploy the agentapp.war file for SAP Enterprise Portal 7.0/Web Application Server 7.0

This post-installation task is required with Agent for SAP Enterprise Portal 7.0/Web Application Server 7.0, regardless of which deployment container the agent is deployed on: SAP Enterprise Portal 7.0 or SAP Web Application Server 7.0.

  1. Start the J2EE engine deploy tool by issuing the following command:

    /usr/sap/SID/instanceName/j2ee.deploying/DeployTool
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Enterprise Portal 7.0/Web Application Server 7.0 instance.


    Caution – Caution –

    Create a subdirectory for the agent application in DeployContainer-base. In this scenario, DeployContainer-base represents the directory within which the SAP Enterprise Portal 7.0/Web Application Server 7.0 instance was installed. Creating a subdirectory ensures that no other directories are affected by the agent application. If you undeploy the agentapp.war file without creating this subdirectory, DeployTool removes other critical content in the DeployContainer-base directory.


  2. Create a new project.

    You can create a new project by selecting the following options: Menu > Project > New Project.

    A dialog box appears.

  3. Browse to an empty directory owned by SAP Instance user (j2eadm).

  4. Enter agentapp for the address field.

  5. Click OK.

  6. Select the Assembler tab.

  7. Right click the agentapp node to select Add Archive from the context menu.

    See the following figure for a visual reference.

    Figure 4–4 SAP J2EE Engine Deploy Tool: agentapp Deployment, Add Archive

    This screenshot illustrates the use of the SAP J2EE Engine
Deploy Tool to add agentapp.

  8. Browse to the PolicyAgent-base/etc directory to select agentapp.war.

  9. Save the Project.

    You can save the project by selecting the following options: Menu > Project > Save.

  10. Browse to the directory specified previously in this task as owned by SAP Instance user (j2eadm).

  11. Enter agentapp for the address field.

  12. Click OK.

  13. Right click the agentapp root node to select Make Ear from the context menu.

    See the following figure for a visual reference.

    Figure 4–5 SAP J2EE Engine Deploy Tool: agentapp Deployment, Make Ear

    This screenshot illustrates the use of the SAP J2EE Engine
Deploy Tool to make Ear.

  14. Select the Deployer tab.

  15. Connect to SAP Enterprise Portal 7.0/Web Application Server 7.0

    You can connect to SAP Enterprise Portal 7.0/Web Application Server 7.0 by selecting the following options: Menu >Deploy >Connect.

  16. Log in as the appropriate user as follows:

    • J2EE Standalone:

      Log in as Administrator.

    • ABAP + J2EE

      Log in as j2ee_admin.

  17. Deploy agentapp.

    You can deploy the agentapp by selecting the following options: Menu > Deploy > Deployment >Deploy Ear.

    See the following figure for a visual reference.

    Figure 4–6 SAP J2EE Engine Deploy Tool: Deploying agentapp

    This screenshot illustrates the use of the SAP J2EE Engine
Deploy Tool to deploy agentapp.

    A prompt appears to start the deployed application.

  18. Select Yes.