<div dir="ltr">Hi,<div><br></div><div>We are in the process of upgrading Drools in our application. Until 5.x the following spring configuration used to work well for us:</div><div><br></div><div><div>       <font face="courier new, monospace">&lt;drools:kbase id=&quot;<b>validationRulesKBase</b>&quot;&gt;</font></div>

<div><font face="courier new, monospace">        &lt;drools:resources&gt;</font></div><div><font face="courier new, monospace">            &lt;drools:resource type=&quot;DRL&quot;  source=&quot;classpath:rules/trade/rule1.drl&quot; /&gt;</font></div>

<div><font face="courier new, monospace">            &lt;drools:resource type=&quot;DRL&quot; source=&quot;classpath:rules/trade/rule2.drl&quot; /&gt;</font></div><div><font face="courier new, monospace">        &lt;/drools:resources&gt;</font></div>

<div><font face="courier new, monospace">    &lt;/drools:kbase&gt;</font></div></div><div><br></div><div>With an inejection of this KnowledgeBase, we would create a stateless session and fire all rules after inserting appropriate facts and globals.</div>

<div><br></div><div>After upgrading to Drools 6, our DRL files don&#39;t seem to be getting picked up in the knowledge base - we are using the following spring configuration:</div><div><br></div><div><div><font face="courier new, monospace">    &lt;bean id=&quot;kiePostProcessor&quot; class=&quot;org.kie.spring.KModuleBeanFactoryPostProcessor&quot;/&gt;</font></div>

<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">    &lt;kie:kmodule id=&quot;kieModule&quot;&gt;</font></div><div><font face="courier new, monospace">        &lt;kie:kbase name=&quot;validationRulesKBase&quot; packages=&quot;com.acme.rules&quot;/&gt;</font></div>

<div><font face="courier new, monospace">    &lt;/kie:kmodule&gt;</font></div></div><div><br></div><div>This KnowledgeBase gets injected in our code but it doesn&#39;t seem to pick up the DRL files in the specified package. We have ensure that the drl files are under <font face="courier new, monospace">src/main/resources/<b>com/acme/rules </b></font>and that package is specified in each DRL file at the top. </div>

<div><br></div><div>Am I missing something in this new configuration?</div><div><br></div><div>thnx,<br clear="all"><div>-mayank<br></div>
</div></div>