The following procedures show you how to deploy the modified WAR file in WebLogic
Portal using WorkShop for WebLogic Platform.
-
Start Oracle WorkShop for WebLogic Platform.
-
Select a workspace, then click OK.
-
Click Workbench
-
Create a new Portal EAR project.
-
Select
-
Expand WebLogic Portal
-
Select Portal Ear Project, then click Next.
-
Enter a project name, then click Next.
The
Project Facets
window appears.
-
Ensure that the following are selected:
- EAR
- WebLogic EAR Extensions
- WebLogic Portal
-
Click Finish.
-
Click
Yes
if you are prompted to open the Portal perspective.
Your new Portal EAR project appears in the Project view.
-
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.
-
Select
-
Enter the Project Name
-
Check the
Add project to an EAR
checkbox.
-
Select the EAR file edited in previous tasks.
-
Click Next.
-
Ensure that the JSF option is selected.
Note: You must ensure that the JSF version is 1.1.
-
Click Next.
The
Web Module
window appears.
-
Continue clicking
Next
until the JSF page appears.
-
On the JSF page, select Use Sun RI WebLogic J2EE Library.
Note: You must ensure that the JSF version is 1.1.
-
Click Finish.
Your Portal Web project appears in the Project navigator.
-
Add Oracle BPM Libraries to the Build Path
-
Right-click
The Properties for Work Shop dialog appears.
-
Select Java Build Path
-
Click the Libraries tab.
-
Click Add Library.
The Add Library dialogue appears.
-
Select WebLogic Shared Library.
-
Click Next.
-
Click Browse
The list of shared libraries appears.
-
Click Manage WebLogic Shared Libraries.
The Shared Library dialog appears.
-
Click Add.
The Add WebLogic Shared Libraries dialog appears.
-
Click Browse.
-
Select the Oracle BPM WorkSpace WAR file.
-
Click Open
-
Click OK.
-
Click OK.
-
Select Shared Libraries.
-
Click OK.
-
Click Finish.
-
Click OK.
The WorkSpace libraries are added to the build path of your Portal web project.
-
Add Oracle BPM Libraries to the Runtime Environment
-
Expand the Portal web project
-
Expand
.
-
Double-click weblogic.xml
The weblogic.xml appears in the Editor View.
-
Select the Libraries tab.
The Select WebLogic Shared Library dialog appears.
-
Click Add.
-
Select the WorkSpace library.
-
Click OK.
-
Save your revisions.
-
Copy Resources to the Local Project
-
Expand the Portal Web Project
-
Expand
.
-
Right-click directory.xml, then select Copy to
Project.
-
Right-click workspace.properties, then select Copy to
Project.
-
Expand
.
-
Double-click
web.xml
The deployment descriptor elements appear in the Editor view.
-
In the Editor view, expand ContextParams.
-
Select
javax.faces.STATE_SAVING_METHOD
-
Change the
Param Value
toserver.
-
Right-click ContextParams, then select New
ContextParam.
-
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.
|
-
Click OK.
-
Specifying a WebLogic Server definition.
This must point to the same WebLogic Portal domain created earlier.
-
Open the Server View.
-
Right click in the view, then select
-
Select WebLogic Server 10.
-
Click Next.
-
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.
-
Click OK.
-
Click Next.
-
Select the EAR file edited previously.
-
Click Add.
This adds the EAR to the list of configured projects.
-
Click Next.
-
Click Finish.