Problem 1 : I cannot get the WAR file for Step 3 included in the example source code to work locally
I am deploying it to:
C:\Program Files (x86)\Oracle\Policy Modeling\EmbeddedTomcat\work\WebRunner\localhost\web-determinations9000
Is this the correct location? Are there any additional steps I have to do with the WAR file? Or have I done something wrong earlier in the example?
The TestCustomScreen rule-base doesn't seem to be able to locate it.
Problem 2 : I cannot get the Example Web App packaged in the WAR file to Integrate with the TestCustomScreen Rule-base on Weblogic
Because I was having trouble with the Embedded Tomcat Server I attempted to deploy onto our weblogic server.
I have tried deploying both the TestCustomScreen rule-base and Web App to our web-logic server.
I can get the example web app to deploy ok from the WAR file provided and it works fine in isolation but it doesn't integrate with the TestCustomScreen rule-base.
Does the example web app needs to be deployed with a specific name? This isn't clear in the documentation, I have used ExampleCustomScreenWebApp.
Or would the problem be in the rule-base itself?
Any help or tips you could provide on this matter would be much appreciated.
To solve problem 1, i would recommend getting your own tomcat, making sure it is running and then deploying the web application to that tomcat rather than trying to use the OPM embedded tomcat as a first try/
For problem 2, your description is a little vague, can you give details on where it is failing? It might be worth looking at the tomcat log files and posting any stack traces or error messages there.
Managed to fix problem 2. I just deployed the custom web application as a WAR file called TestCustomScreen onto the weblogic server and renamed the deployment of the OPA rule-base WAR file as TestCustomScreenExample. I wouldn't have been able to name them both the same which was what caused the confusion for me as the documentation and example source code seem to imply this.
For problem 1 If I deployed my own version of Tomcat locally could I call the custom web application from the embedded tomcat server or would I also have to deploy the OPA rule-base to my own version of Tomcat as well? I think that I would have to deploy the OPA rule-base as well??
You can deploy a rulebase by copying the <rulebasename>.zip from the <project>/output directory after its built, to the WEB-INF/classes/rulebases directory of your expanded customized web determinations.
If you do want to use the embedded tomcat in OPM, then you can customise anything in <project>\Release\web-determinations and it will be built and run when you build the project.
Using your own tomcat is often better as with custom development you will often need to check the web application error logs, and they are easier to find in your own tomcat