Installing Oracle Policy Automation on WebLogic Server

Today I needed to install Oracle Policy Automation into a WebLogic Server (11g) environment, for integration into a WebCenter Spaces portal (more on that later).   The documentation provides some hints on how to do this, but not all of the necessary detail.  So here is how to do it:

I am installing the Oracle Policy Automation 10.1.0.27 Web Determinations server on WebLogic Server 10.3.2.

First step is to download the OPA software from Oracle Technology Network and then unzip the downloaded file.

Inside this file, you will find a directory called web-determinations, which contains a file called web-determinations.war.  You need to unzip this file into a new directory, e.g. using WinZip.  I called my directory unzipped.  You should see four directories: content, data, META-INF and WEB-INF.

Navigate into the WEB-INF directory, then classes, then configuration.  Here you will find a file called application.properties, which we need to edit.

About 10-15 lines from the top  of the file, you will see these two settings, which you need to update as shown:

load.rulebase.from.classpath =true
rulebase.path               =rulebases

Now, save the file, and return to your unzipped directory.  Using WinZip, or something similar, create a new zip archive file, called web-determinations.zip which contains the four directories here in your unzipped directory.  Those four should appear as the top level directories inside your new zip file.  You may wish to compare with the old one to make sure you have zipped from the right place in the directory structure.

These changes are necessary because of the way that WebLogic Server handles war files at deployment and runtime.  Specifically, it does not explode out all of the contents like some other application servers do.  So we want to load our rulebases from the classpath instead of directory.

Now, you are ready to deploy.

The deployment is done the normal way, in WebLogic console, go to Deployments, click on Install, point to the war file you just created, then take the defaults for all the other pages and click on Finish.

When it is done, you can click on the Testing tab to get easy access to the URL to open up the web interface, which should look like this:

There will not be any rulebases available yet (somewhat obviously).  Stay tuned for another post on creating, deploying and testing a rulebase!

About Mark Nelson

Mark Nelson is an Architect (an "IC6") in the Fusion Middleware Central Development Team at Oracle. Mark's job is to make Fusion Middleware easy to use in the cloud and at home, for developers and operations folks, with special focus on continuous delivery, configuration management and provisioning - making it simple to manage the configuration of complex environments and applications built with Oracle Database, Fusion Middleware and Fusion Applications, on-premise and in the cloud. Before joining this team, Mark was a senior member of the A-Team since 2010, and worked in Sales Consulting at Oracle since 2006 and various roles at IBM since 1994.
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

One Response to Installing Oracle Policy Automation on WebLogic Server

  1. Pingback: Creating rules in Oracle Policy Automation « RedStack

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s