Deploying the WAR File in WebLogic Portal

The following procedures show you how to deploy the modified WAR file in WebLogic Portal using WorkShop for WebLogic Platform.
  1. Start Oracle WorkShop for WebLogic Platform.
  2. Select a workspace, then click OK.
  3. Click Workbench
  4. Create a new Portal EAR project.
    1. Select File > New > Other
    2. Expand WebLogic Portal
    3. Select Portal Ear Project, then click Next.
    4. Enter a project name, then click Next. The Project Facets window appears.
    5. Ensure that the following are selected:
      • EAR
      • WebLogic EAR Extensions
      • WebLogic Portal
    6. Click Finish.
    7. Click Yes if you are prompted to open the Portal perspective.

    Your new Portal EAR project appears in the Project view.

  5. Create a Portal Web Project

    You must add this portal web project to the Portal EAR project created in the previous step. You must also select JSF from Project Facelets when creating the Web Project.

    1. Select File > New > Portal Web Project
    2. Enter the Project Name
    3. Check the Add project to an EAR checkbox.
    4. Select the EAR file edited in previous tasks.
    5. Click Next.
    6. Ensure that the JSF option is selected.
      Note: You must ensure that the JSF version is 1.1.
    7. Click Next. The Web Module window appears.
    8. Continue clicking Next until the JSF page appears.
    9. On the JSF page, select Use Sun RI WebLogic J2EE Library.
      Note: You must ensure that the JSF version is 1.1.
    10. Click Finish.
    Your Portal Web project appears in the Project navigator.
  6. Add Oracle BPM Libraries to the Build Path
    1. Right-click WorkSpace > Build Path > Configure Build Path The Properties for Work Shop dialog appears.
    2. Select Java Build Path
    3. Click the Libraries tab.
    4. Click Add Library. The Add Library dialogue appears.
    5. Select WebLogic Shared Library.
    6. Click Next.
    7. Click Browse The list of shared libraries appears.
    8. Click Manage WebLogic Shared Libraries. The Shared Library dialog appears.
    9. Click Add. The Add WebLogic Shared Libraries dialog appears.
    10. Click Browse.
    11. Select the Oracle BPM WorkSpace WAR file.
    12. Click Open
    13. Click OK.
    14. Click OK.
    15. Select Shared Libraries.
    16. Click OK.
    17. Click Finish.
    18. Click OK.
    The WorkSpace libraries are added to the build path of your Portal web project.
  7. Add Oracle BPM Libraries to the Runtime Environment
    1. Expand the Portal web project
    2. Expand Web Content > WEB-INF .
    3. Double-click weblogic.xml The weblogic.xml appears in the Editor View.
    4. Select the Libraries tab. The Select WebLogic Shared Library dialog appears.
    5. Click Add.
    6. Select the WorkSpace library.
    7. Click OK.
    8. Save your revisions.
  8. Copy Resources to the Local Project
    1. Expand the Portal Web Project
    2. Expand Merged Project Content > WEB-INF .
    3. Right-click directory.xml, then select Copy to Project.
    4. Right-click workspace.properties, then select Copy to Project.
    5. Expand WebContent > WEB-INF .
    6. Double-click web.xml The deployment descriptor elements appear in the Editor view.
    7. In the Editor view, expand ContextParams.
    8. Select javax.faces.STATE_SAVING_METHOD
    9. Change the Param Value toserver.
    10. Right-click ContextParams, then select New ContextParam.
    11. Enter the following values:
      Param Name com.bea.controls.IMAGESERVER_URI
      Param Value http://hostname:port/ BPM_project /opencontrols
      Note: This URL points to the domain where the Oracle BPM WorkSpace application is deployed.
    12. Click OK.
  9. Specifying a WebLogic Server definition.

    This must point to the same WebLogic Portal domain created earlier.

    1. Open the Server View.
    2. Right click in the view, then select New > Server
    3. Select WebLogic Server 10.
    4. Click Next.
    5. Click Browse, then select the WebLogic Portal domain. This must be the WebLogic domain created earlier. If you are using a two domain configuration, then this must be the WebLogic Portal domain created earlier.
    6. Click OK.
    7. Click Next.
    8. Select the EAR file edited previously.
    9. Click Add.

      This adds the EAR to the list of configured projects.

    10. Click Next.
    11. Click Finish.