3Deploying CPS as a WSRP Producer

This chapter provides information required for the deployment of Oracle Content Portlet Suite (CPS) as a WSRP producer. Once CPS is deployed, the portlets can be consumed from other WSRP-enabled portal servers. It covers the following topics:

3.2.3Deploying CPS Portlets on WebLogic Portal

This section describes how to configure WebLogic Portal as a producer using Web Services Remote Portlets (WSRP) for CPS.

Important:

Before deploying CPS portlets, select an existing WebLogic domain or create a new WebLogic domain (for example, cps_domain). You must configure this domain to support WebLogic Server, Workshop for WebLogic, and WebLogic Portal.

Reference Your Content Server

Uncompress the CPS distribution file and extract the WebLogic CPS zip file to your local directory.

Locate the /WEB-INF/config directory.

Open the cps-initialization.properties file in a text-only editor. Edit the host property value to reference the IP address or host name of your content server instance. Edit the port property value if your content server is running on a port other than the default port of 4444. Do not remove the new line character at the beginning of the file.

For example:

Host=192.0.2.254
Port=4448

Create a Portal Web Project

Launch Workshop for WebLogic.

Select File, then New, and then Project.

In the New Project dialog, expand the WebLogic Portal node.

Select Portal Web Project.

Click Next.

The New Portal Web Project wizard displays.

In the Create a New Oracle WebLogic Portal Web Project step, enter a project name (for example, CPS).

Click Finish.

If the Open Associated Perspective dialog displays, click Yes.

Create a Portal EAR Project

In Workshop for WebLogic, select File, then New, and then Project.

In the New Project dialog, expand the WebLogic Portal node.

Click Portal EAR Project.

Click Next.

The New Portal EAR Project wizard displays.

In the Create a New Oracle WebLogic Portal EAR Project step, enter a project name (for example, CPS Consumer-EAR).

In the File System step, click Browse associated with the From Directory field.

Browse to the /portlets directory of the uncompressed CPS distribution file and click OK.

In the Import Resources from Local File System step, enable the portlets option.

Click Finish.

If prompted to overwrite Manifest.MF file, click Yes.

After the portlets folder is imported, you might notice several errors in the web project. Error files are shown with a red cross prefixed with the file in Project Explorer view. Select the files showing errors and delete them.

Publish the EAR File

In Workshop for WebLogic, select Servers view.

Right-click in Servers view, click New, then Server.

The New Server wizard displays.

In the Choose Type of Server to Create step, accept the default settings and click Next.

In the Specify a WebLogic Domain Directory step, click Browse.

Browse to the new CPS domain directory and click OK.

For example:

C:/oracle_weblogic/user_projects/domains/cps_domain

Click Next.

In the Add and Remove Projects step, select the CPS EAR file from the Available Projects section and click Add to add it to Configured Projects.

Click Finish.

In Servers view, right-click on the new server and select Publish to start the server and publish the EAR file.

The wildcard (*) is accepted, but IP addresses must take the form x.x.x.x regardless of wildcards, and must be separated by a vertical bar.

For example:

12.34.56.*|12.34.57.*|12.35.*.*

You must restart the content server for these changes to take effect.

3.4.2Editing the Configuration File for Content Server

You must edit the content server configuration file (config.cfg) to include the IntradocServerPort configuration variable and the port number. This entry is present by default in Oracle Content Server 10g but must be added to the configuration file for Oracle Content Server 11g.

Follow these steps to add the IntradocServerPort entry to the configuration file:

Launch the Content Admin Server.

Click General Configuration.

In the Additional Configuration Variables field, add IntradocServerPort entry and the port number.

For example:

IntradocServerPort=4444

Click Save.

Click Start/Stop Content Server.

Restart the content server.

Scripting on this page enhances content navigation, but does not change the content in any way.