First, I apologize long email. I have a few questions on how to use RESTful web Service on Execution Server. I have read through the document and followed the instruction. I think I missed a few critical steps. Here are what I did.


1)      Created package, category, rule, a java class (Referral as fact).

Class Referral {

                String homeState;

                String servviceType;

                String stateLicenseNumber;


2)      Used Test Scenarios tool to test rule. Everything worked perfectly.

3)      Installed Execution Server in JBoss.

4)      Added a file under \drools-5.0-guvnor-standalone\jboss-4.2.3.GA\server\default\deploy\drools-server.war\WEB-INF\classes\

<change-set xmlns=''";


        xs:schemaLocation=' drools-change-set-5.0.xsd' >


          <resource source=http://localhost:8080/DroolsDemo_sfasdfasd.pkg type='PKG' />



5)  Add jar file for above java class in lib directory.

6)      Created java class to call mytest RESTful service.


PostMethod method = new PostMethod("http://localhost:8080/drools-server/knowledgebase/mytest");

            method.setRequestHeader("Cache-Control", "no-cache");




                  File f = new File("Request.xml");

            method.setRequestBody(new FileInputStream(f));

            }catch(Exception e){



Request.xml content is:








      <fact class="Drools.ReferralDetail">









I got RuleBase mytest not known or is not valid.


Here are my questions:


1)      Did I miss any other steps? Anything I did wrong?

2)       If I run execution server on different server, where I should put pkg file and how to make necessary changes to


Appreciate your help and Happy Holidays.



Windows 7: It works the way you want. Learn more.