Trying to answer you question I decided to create HOWTO from the very beginning what I did to get my Drool rules executed on remote server.
My task was to integrate Kie Workbench and Execution Server, so business users be able to create Drools rules and deploy them to the Repo, while developers could use these rules via calling REST services of standalone Drools execution server.
You should follow these steps:
Before using Drools Execution Server let me use such terminology:
- Kie Drools Workbench - is UI for creating and deploying Model and
Rules file(s) to Maven Repository
- Kie Execution Server - is standalone Drools execution server. It consumes REST calls of commands and returns execution results
- Assumed you have Tomcat 7.0/8.0 and Maven installed
Deployment of Drools Workbench
Most stable version of Kie Drools Workbench to deploy at the moment is 6.1.0.Final. Use this one for deploying on Tomcat 7.0 only!
You can download file called kie-drools-wb-distribution-wars from Jboss sonar repo, use version 6.1.0.Final and tomcat7.war
Make sure you added following jars to Tomcat's lib directory: javax.security.jacc-api-1.4.jar, kie-tomcat-integration.jar, slf4j-api-1.7.2.jar
Make sure you have or added following roles/users to tomcat-users.xml of your Tomcat:
<role rolename="admin"/> <!-- Tomcat Admin role -->
<role rolename="analyst"/> <!-- Kie Workbench Analyst role. -->
<role rolename="kie-server"/> <!-- Kie Drools Execution Server role. Needed to make REST Rules execution request -->
<user username="admin" password="admin" roles="manager-gui,manager-script" /> <!-- Tomcat Admin user -->
<user username="user1" password="user1" roles="admin, kie-server" /> <!-- Kie Drools Execution Server user. Needed to make REST Rules execution request -->
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…