<p>Hello,</p>
<div>I am new to Drools and have written a rule .DRL file which contains some <br>helper function imports from other packages, fact objects imports from <br>other packages and the rules that act on these facts. The file works well <br>
when I call it from my javacode using the rulebase or knowledgebase approach. </div>
<div>The drl file itself is in its own package.</div>
<p>I now have a requirement to call the same rules from within Guvnor.<br>The goal is to enable business users modify these rules through the <br>Guvnor UI and also take advantage of the disable individual rules <br>feature within guvnor.</p>

<div>My current difficulty is importing and validating the rules in guvnor, <br>along with the associated fact jar files and finally interfacing </div>
<div>with guvnor from my code. Any help would be appreciated .</div>
<div>The main error happens when I try to build a binary package and create<br>a snapshot of the working rule file I imported for deployment.<br>When I hit the save and validate configuration button, I get<br><strong>&quot;class not found&quot;</strong> validation errors for all the classes imported at <br>
the top of the rule file - includingng the helper import functions<br>and facts used in the rules. Same thing happens when I try to </div>
<div>build the package I get the following errors </div>
<div>&quot;Error importing: &lt;list of all classes in import statement in rule file&gt;&quot;</div>
<p>Here are the steps I followed in importing the rule file and Jar file containing the classes<br>into Guvnor</p>
<div>(1) First within Guvnor I created a package corresponding to the package path</div>
<div>for for each of the jar files whose classes are referenced/imported in the rule .DRL file</div>
<p>(2) I created the jar files for each of these packages in eclipse</p>
<p>(3) Imported those jars individually into each of the packages created in guvnor <br>    using upload model jar function and selecting the appropriate path as<br>    created in step 1 2 above</p>
<p>(4) Imported the rule file which is in its own package - using the create package (upload method)</p>
<p>(5) I then try to save and validate the imported rule file in step 5 (this is where the error occurs)</p>
<p><br>I have already setup my code to call guvnor as follows</p>
<p>RuleAgent agent = RuleAgent.newRuleAgent(&quot;guvnor.properties&quot;);<br>RuleBase masterRuleBase = agent.getRuleBase();</p>
<p>guvnor.properties contains only one entry<br>url = <a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST</a></p>

<p>It is my understanding that after I import the rule file<br>I need to save and validate and build the package<br>in order to  point the url to the path above. If I point the url to just<br>the drl file itself will it work?<br>
i.e url=<a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST.drl">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST.drl</a> <br>
 </p>
<p>Any help to resolve the class not found error will <br>be much appreciated</p>
<p>Thanks<br></p>