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). In this post, I provide some hints on how to do this. Please refer to the documentation for additional information.
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!