Oracle® SOA Suite Installation Guide for Oracle WebLogic Server 10g Release 3 (10.1.3.5.1) for UNIX and Microsoft Windows Part Number E15828-01 |
|
|
View PDF |
This chapter describes post install steps following installation of Oracle SOA Suite with Oracle WebLogic Server. It includes the following sections:
Starting soa10g_server Using Node Manager Instead of the startManagedWeblogic script
Design-time Deployment Support Oracle SOA Suite 10.1.3.5.1 on Oracle WebLogic Server 10.3.1
Complete the following steps to configure BPEL Samples and seed default JAZN Users for HWF and Worklist Application:
Update the SOA_ORACLE_HOME/bpel/utilities/ant-orabpel.properties
file by setting the following properties values:
set the admin.user
to soaadmin
set the admin.password
to the cleartext password of soaadmin
Open a BPEL Dev prompt and navigate to the SOA_ORACLE_HOME/bpel/samples
directory.
Execute the obant.sh/bat install
script.
The obant script will backup existing and unzip the latest samples.
Set the tokenized parameters in the samples to values from the ant-orabpel.properties
file.
The steps seed the default jazn
user community for identity service/Workflow samples/worklistApp
.
Change the admin.password
to admin.encrypted.password
based on the provided cleartext value.
The steps seed the default jazn
user community for identity service/Workflow samples/worklistApp
.
Complete the following steps to configure ESB systems using ESB Console:
Change the ESB System configuration from the esb
console
Ensure that the system information for the ESB services have the following values:
Virtual Host: The hostname of ESB design-time instance
Port: The port number of ESB design-time instance
Topic Location: ESB_JAVA_DEFERRED
The value of the Connection Factory Location
parameter does not matter for ESB on Oracle WebLogic Server; this is because ESB, by default, uses AQ messaging. ESB also uses the AQ JMS API to connect to the AQ Messaging topics.
Update the ORAESB.ESB_PARAMETER
table to ensure that the values for DT_OC4J_HOST
and DT_OC4J_HTTP_PORT
are the same as the host name and port number of the managed server running ESB Services application.
The default values from the installation are:
DT_OC4J_HOST = localhost
DT_OC4J_HTTP_PORT = 9700
To start the managed server from the AdminConsole
instead of from startManagedWeblogic.sh/.bat
command, set the StartScriptEnabled=true
parameter in the nodemanager.properties
file.
Note that the nodemanager.properties file is only generated when you start NodeManager for the first time.
In order to generate the nodemanager.properties file:
Start NodeManager using in the MW_HOME/wlserver_10.3/server/bin
directory using either the startNodeManager.cmd
(Microsoft Windows) or startNodeManager.sh
(Linux).
Edit the MW_HOME/wlserver_10.3/common/nodemanager/nodemanger.properties
file, set the parameter StartScriptEnabled=true
.
Terminate the node manager process.
Re-start the node manager again.
After completing these steps, you should be able to start and stop the managed server from the WebLogic Admin Console.
The section describes how to enable the OWSM ServerAgent to secure BPEL processes. Complete the following steps:
Create the Server Agent from the OWSM user interface with Container Type = OTHER
.
Verify that you have created a new component. For example, C0003003 service_agent Server Agent.
Be sure to add the Required Policies to the ServerAgent
.
Refer to step 6 for BPEL Process specific policies
Inject the soabpel.ear
file with the ServerAgent
using the wsmadmin installAgent
with the following updates to SOA_ORACLE_HOME/owsm/bin/agent.properties
:
agent.componentType=serveragent
agent.containerType=WEBLOGIC
agent.containerVersion=10.3.1
webservice.application.input=SOA_ORACLE_HOME/soa/applications/soabpel-ServerAgent/soabpel.
ear
webservice.application.webapp.name=startup.war
agent.component.id=C0003003
Verify that - CoreSvFilter - ServletFilterHook
is added in the soabpel./startup.war.xml
file.
Restart Oracle SOA Suite with Oracle WebLogic Server with the re-generated soabpel.ear
file.
Initiate async
and sync bpel
from the Initiate page and SoapUI HelloWorld CreditRatingService
.
Check the OWSM console for service_agent
calls.
Go to Operation Management > Overall Statistics > Message Logs > service_agent.
Verify that the ServerAgent processed calls from the message logs.
For example:
1 /orabpel/default/HelloWorld/1.0 Tuesday, August 18, 2009 01:00:18 PM Request 2 /orabpel/default/HelloWorld/1.0 Tuesday, August 18, 2009 01:00:22 PM Response 3 /orabpel/default/CreditRatingService/1.0 Tuesday, August 18, 2009 01:04:14 PM Request 4 orabpel/default/CreditRatingService/1.0 Tuesday, August 18, 2009 01:04:17 PM Response
This sections describes how to add policy enforcements.
The following example shows how to add enforcements for the following 2 policies :
HelloPolicy
CreditPolicy
Select Edit Mappings for the component and add the following example mappings:
/orabpel/default/CreditRatingService/1.0 CreditPolicy
/orabpel/default/HelloWorld/1.0 HelloPolicy
* Default
Component: ServerAgent C0003003
Please note that the order is important; make sure the default mapping is last in order.
Verify that the policies are enforced based on the URL pattern and resultant BPEL Process.
The HelloPolicy should only be applied for calls to the HelloWorld
process,
Use the CreditPolicy
for the CreditRatingService
process and the Default
policy for all other process calls.
For BPEL and ESB, the following steps describe how the dehydration store details can be changed from the WLS Admin console:
Login to WLS Admin console.
Goto SOADomain -> Services -> JDBC -> Datasources.
There are 5 datasources which are created for BPEL and ESB:
BPELServerDataSource
BPELServerDataSource
Workflow
esbaqdatasource
esbds
To change the dehydration store details click on each datasource link, go to Connection Pool and provide the appropriate information in the required fields.
For OWSM:
Change the database information in the install.properties file found in the SOA_ORACLE_HOME/owsm/bin
directory.
Stop the managed server (soa10g_server
).
From the command prompt, goto the SOA_ORACLE_HOME/owsm/bin
directory.
Run wsmadmin.bat(sh)
install.
This will update the OWSM configuration properties and regenerate the OWSM applications.
Start the managed server (soa10g _server
).
To enable client side configuration for HWF API Clients:
Update the SOA_ORACLE_HOME/bpel/system/services/config/wf_client_config.xml
file with a valid WLS user for SOADomain.
For example:
<user>soaadmin</user> <password>welcome1</password>
HWF clients should refer to the following in the classpath for HWF API over Remote/SOAP binding
WLS_HOME/server/lib/weblogic.jar SOA_ORACLE_HOME/bpel/system/classes SOA_ORACLE_HOME/bpel/lib/orabpel.jar SOA_ORACLE_HOME/bpel/lib/orabpel-boot.jar SOA_ORACLE_HOME/bpel/lib/orabpel-exts.jar SOA_ORACLE_HOME/bpel/lib/orabpel-common.jar SOA_ORACLE_HOME/webservices/lib/saaj-api.jar SOA_ORACLE_HOME/webservices/lib/orasaaj.jar SOA_ORACLE_HOME/lib/xmlparserv2.jar SOA_ORACLE_HOME/lib/xml.jar SOA_ORACLE_HOME/bpel/lib/oracle_http_client.jar
HWF clients should define the following system properties for HWF API over Remote/SOAP binding:
-Djavax.xml.parsers.DocumentBuilderFactory=oracle.xml.jaxp.JXDocumentBuilderFactory -Djavax.xml.parsers.SAXParserFactory=oracle.xml.jaxp.JXSAXParserFactory -Djavax.xml.transform.TransformerFactory=oracle.xml.jaxp.JXSAXTransformerFactor -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Djavax.xml.soap.SOAPFactory=oracle.j2ee.ws.saaj.soap.SOAPFactoryImpl -Djavax.xml.soap.SOAPConnectionFactory=oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectionFactory -Djavax.xml.soap.SOAPElementFactory=oracle.j2ee.ws.saaj.soap.SOAPFactoryImpl
To enable Notification on your Oracle SOA Suite with Oracle WebLogic Server installation you need to obtain the velocity-dep-1.5.jar
file. This file is required for the notification feature to work.
The BPEL notification feature is disabled by default. To enable the BPEL notification feature, you must download the velocity-dep-1.5.jar file.
To enable notification:
Download the velocity-dep-1.5.jar file from http://archive.apache.org/dist/velocity/engine/1.5
.
Place the JAR file in the $Oracle_Home/bpel/lib
directory (UNIX) or the Oracle_Home\bpel\lib
directory (Microsoft Windows).
Restart the managed server for SOADomain.
This enables the BPEL notification feature to display in Oracle BPEL Control.
Complete the following steps to use the Oracle Internet Directory LDAP provider:
Stop the managed server.
Backup the existing SOA_ORACLE_HOME/bpel/system/services/config/is_config.xml
file.
Make a copy of SOA_ORACLE_HOME/bpel/system/services/config/ldap/is_config_for_OID.xml
and rename it as SOA_ORACLE_HOME/bpel/system/services/config/is_config.xml
.
Point is_config.xml
to a valid Oracle Internet Directory repository.
Backup the existing SOA_ORACLE_HOME/j2ee/home/config/jazn.xml
file as .orig
in the same location.
In the SOA_ORACLE_HOME/j2ee/home/config/jazn.xml
file, comment out the section using the XML provider and uncomment out the section using LDAP.
Provide the Oracle Internet Directory details as shown below.
For example:
<jazn provider="LDAP" location="ldap://pdrab02-4.us.oracle.com:40864" default-realm="us"> <property name="ldap.user" value="cn=orcladmin"/> <property name="ldap.password" value="!welcome1"/> <property name="ldap.protocol" value="no-ssl"/> </jazn>
Restart managed server
.ear
FilesTo deploy human task form EAR:
Change to the …\public_html\…\
form in the directory of the sample.
Note the .ear
file created in the directory.
Extract the application.xml
file from the .ear
into the META-INF folder. Open application.xml
and add the following DTD to it.
<application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" (http://java.sun.com/xml/ns/j2ee) xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" (http://www.w3.org/2001/XMLSchema-instance) xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" (http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/application_1_4.xsd)> <application>
Add the modified application.xml
back into the same folder structure in the META-INF folder.
Extract the .war
file from inside the file. Extract the web.xml
file from the .war into the WEB-INF folder. Open web.xml
and add the following DTD to it.
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
Put the modified web.xml
back into the .war in the same folder structure under WEB-INF. Then, add the modified .war file back in to the .ear
.
.ear
To deploy decision services :
Change to the ..\decisionservices\.. directory of the sample.
Note the file created in the directory.
Create an exploded directory version of the Decisionservices file. For example, if the file in your machine is DecisionService., then the steps to create an exploded directory are as follows:
Rename the DecisionService.
to DecisionService.zip
.
Create a new folder with the name of the called DecisionService.
Extract the DecisionService.zip
to DecisionService folder that you created in Step b. The META-INF
folder and DecisionService-web.war
file is created in the DecisionService folder.
Navigate to DecisionService folder and rename the DecisionService-web.war
to DecisionService-web.zip
.
Create a new folder with the name of the war file called DecisionService-web in the DecisionService folder.
Extract the DecisionService-web.zip to DecisionService-web folder that you created in Step e.
Delete the DecisionService-web.zip from the DecisionService folder.
Navigate to DecisionService-web folder, and you will notice the following three folders: META-INF
, public_html
, and WEB-INF
.
Note:
Here, WebLogic needs the decision services .ear to be deployed as an exploded directory version and not as an .ear file.Repeat steps a to h to create an exploded directory version of the file that you would want to deploy.
The web application DTD link in the web.xml
files included with Oracle SOA Suite must be modified before deployment to the WebLogic Server.
Search for the web.xml
file in the SOA_ORACLE_HOME
\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\WEB-INF
directory.
Make the following change in the above mentioned web.xml
file:
Move:
SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\WEB-INF\web.xml
To:
SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\ PriceQuote\SelectManufacturingUI\web.xml_oc4j
Move:
SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\web.xml_weblogic
To:
SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\WEB-INF\web.xml
Create an .xml
file named weblogic.xml in the SOA_ORACLE_HOME
\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\WEB-INF
directory.
Add the following to the weblogic.xml
file:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.1//EN" "http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd"> <weblogic-web-app> <reference-descriptor> <ejb-reference-description> <ejb-ref-name>ejb/remote/TaskServiceBean</ejb-ref-name> <jndi-name>ejb/bpel/services/workflow/TaskServiceBean</jndi-name> </ejb-reference-description> </reference-descriptor> </weblogic-web-app>
Save the weblogic.xml
file.
Rename CompleteTask.jsp
to CompleteTask_oc4j.jsp
in SOA_ORACLE_HOME
\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI\
directory.
Copy completeTask.jsp_weblogic
to completeTask.jsp
in SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturingUI
directory
Open Bpel Dev prompt
Change directories to the following:
SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial
Start SQL*Plus and run the following script:
SQL> @PracticeFiles\insertTable.sql;
This creates the required sample tables in the database.
Change all the BPEL partner links in the bpel.xml files to update to the default port, as defined in the SOADomain.properties
file.
Run the following command:
ant
This compiles and deploys all projects dependent upon this tutorial. However, WAR files for CreateOrderBookingUI
, SelectManufacturingUI
, default_SelectManufacturing_1_0_Approval.
, and default_OrderApproval_1_0_OrderApproval.ear
for Human Workflow must be manually deployed into the Oracle WebLogic Server..
Change to the <SOA_ORACLE_HOME>\j2ee\home\applications
directory.
Note the CreateOrderBookingUI
and SelectManufacturingUI
were created when you ran ant
in Step 10.
Change to the SOA_ORACLE_HOME\bpel\samples\tutorials\127.OrderBookingTutorial\OrderApproval\public_html\OrderApproval\form
directory.
Note the default_OrderApproval_1_0_OrderApproval.ear
file that was created when you ran ant in Step 10.
Change to Oracle_Home\bpel\samples\tutorials\127.OrderBookingTutorial\PriceQuote\SelectManufacturing\public_html\Approval\form
directory.
Note the default_SelectManufacturing_1_0_Approval.ear
file that was created when you ran ant in Step 10.
Select Install Application in the Administrative Console to deploy the war files to the WebLogic Server.
Access the Administrative Console at the following URL:
http://<hostname>:<adminport>/console
Select soa10g_server1
as the deployment target.
Restart soa10g_server1
from the console.
Run the following OrderBooking Tutorial steps:
Initiate the process using http://<hostname>:<default_port>/CreateOrderBookingUI
where default_port
is as defined in the SOADomain.properties
file.
Open the console in audit or flow mode. Follow the steps that appear on the console and click task links to complete the task.
After the process moves beyond supplier selection, the human workflow is added, for manual user approval (or rejection). This process has a timeout of 5 minutes and defaults to order status is rejected. Follow this step by opening the worklist URL at http://<hostname>:default_port/integration/worklistapp/Login
where default_port
is as defined in the SOADomain.properties
file.
Ensure that the outbound connection pool properties shown in Table 4-1 are modified.
You should create the required outbound connection pools that are used by BPEL Process Partnerlinks before deploying BPEL Processes using Adapters. Perform the following steps to create the required outbound connection pools:
Log in to http://<hostname>:<adminport>/console
, using weblogic
as the username and password.
Select Deployments, <adapter_name>
, Configuration, and Outbound Connection Pools. The Outbound Connection Pool Configuration Table is dispalyed.
Click Lock & Edit.
Click New. The Create a New Outbound Connection page is displayed.
Select the outbound connection displayed in the Outbound Connection Group.
Click Next. The JNDI Name for Outbound Connection Instance page is displayed.
Enter the required JNDI name as referenced by the partnerlink WSDL of the BPEL process under jca:address location.
Click Finish. The Save Deployment Plan Assistant page is displayed.
Select a deployment plan location in the Location field, and click Finish. The Settings for <adapter_name> page is displayed.
Return to the Outbound Connection Pools page and select the outbound connection pool that you created under the Groups and Instances column. The Outbound Connection Properties page is displayed.
Click the respective property value column to update the properties.
Click Save.
Click the Activate Changes button to activate the changes you have made.
Table 4-1 Outbound Connection Pool Properties
Adapter Type | Properties |
---|---|
Database |
|
FTP |
Note: A new authentication alias must be created for connecting to the FTP server. |
Applications |
|
AQ |
|
JMS |
Note: The |
MQ |
|
This section describes the various design-time support functions available on WebLogic Server, for the deployment of J2EE applications in JDeveloper. You can deploy BPELPM components on WebLogic Server by using the following two methods:
You can use ant
in the BPELPM developer prompt to deploy J2EE applications. This section contains the following topics:
Ensure that bpelPlatform
is set to weblogic_8 in the SOA_ORACLE_HOME\bpel\system\config\collaxa-config.xml
file.
Ensure that the following properties are set in SOA_ORACLE_HOME\bpel\utilities\ant-orabpel.properties
file:
platform
to weblogic_8
admin.user
to valid user in WebLogic realm
admin.encrypted.password
to admin.password
of the above user
jndi.url
to t3://<hostname>:9700
jndi.InitialContextFactory
to weblogic.jndi.WLInitialContextFactory
Note:
If theadmin.user
property is not set correctly, then the deployment may throw authentication errors.Follow these instructions to deploy BPELPM from the developer prompt using ant:
Open a BPELPM Developer prompt.
Run ant.sh/bat
from the SOA_ORACLE_HOME\bpel\system\appserver\oc4j\ant\bin
directory of the BPEL application.
Note:
For more information, refer toSOA_ORACLE_HOME\OraBPEL_OC4J\bpel\GETTING_STARTED.html
.The only exceptions to be noted are as follows:
If the BPEL Process contains any Decision Service applications, UI applications, or Work Flow applications, then these applications will not be automatically deployed in WebLogic Server by the ant
script.
The corresponding .ear
/WAR files is custom built for WebLogic platform but must be manually deployed on the target server soa10g_server1.
Use Weblogic Admin console (http://<hostname>:<adminport>/console
) to deploy the .ear
/WAR files to soa10g_server1.
You can also deploy J2EE applications from JDeveloper. This section contains the following topics:
Download JDeveloper Studio 10.1.3.5 (jdevstudio10135.zip
) from
For Windows - http://www.oracle.com/technology/software/products/jdev/htdocs/soft10135.html.
Modify the following properties in the <JDEV_HOME>\integration\bpel\utilities\ant-orabpel.properties
file:
platform
to weblogic_8
admin.user
to valid user in WebLogic realm
admin.encrypted.password
to admin.password
of the above user
jndi.url
to t3://<hostname>:9700
jndi.InitialContextFactory
to weblogic.jndi.WLInitialContextFactory
Creating Connections to Oracle SOA Server
Follow the steps below to create an application server connection and an integration server connection:
Create an application server connection of the Standalone OC4J 10.1.3 type.
Choose OC4J standalone as server type as there is no plugin available for WebLogic
Ignore errors when testing this connection. This is due to OPMN absent on WebLogic
Create an Integration Server connection to <hostname>:<default_port>. The default port is as mentioned in the SOADOMAIN.properties
file.
Choose the above-created AppServer connection
BPEL and ESB should pass when this connection is tested
Follow these instructions to deploy BPELPM from the developer prompt using JDeveloper:
From JDeveloper, right-click and deploy the BPEL application into the required domain.
The only exceptions to be noted are as follows:
If the BPEL Process contains any Decision Service applications, UI applications, or Work Flow applications, then these applications will not be automatically deployed in WebLogic Server by JDeveloper.
The corresponding .ear
/WAR files is custom built for WebLogic platform but must be manually deployed on the target server soa10g_server1 in WebLogic.
Use Weblogic Admin console (http://<hostname>:<adminport>/console
) to deploy the .ear
/WAR files to soa10g_server1.
When you shut down the ESB Managed server you will may receive the following exception message:
SEVERE: ESB server shutdown: Failed to stop one or more System java.lang.NullPointerException
This ESB server shutdown exception occurs when you have wrong data. For example, TOPIC_NAME
, HOSTNAME
, and PORT
to any one or more ESB Systems in the ESB console.
When you correct the data values to ESB Systems the change will not take effect until you restart the server.
Set following values in ESN console for everty ESB Service:
Virtual Host
: The hostname of ESB design-time instance
Port:
The port number of ESB design-time instance
Topic Location:
ESB_JAVA_DEFERRED