<div dir="ltr">Hello,<div>I am running JBoss 5.1.0 GA with drools 5.1.1 (added run-time libraries).</div><div>I have several DRL files which resides outside my EAR in a &#39;rules&#39; directory.</div><div>When the EAR loads, I am loading the DRLs using:</div>


<div><i>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</i></div><div><i>for(...) {</i></div><div><i>     kbuilder.add(ResourceFactory.newFileResource(file), ResourceType.DRL);</i> </div><div>}</div>


<div>That works fine.</div><div>When I do redeploy of the EAR, this code passed successfully, but the rules won&#39;t run anymore.</div><div>When I switch to drools 5.0.1 run-time libraries, it returns to work. </div><div>


I need to work with 5.1.1 since I use some of the new features.</div><div><br></div><div>I found an old post that was answered by Mark Proctor suggesting to use a single drools-all.jar: <a href="http://markmail.org/message/6yzc7c6ejdn6iekc#query:drools%20classloader%20problem+page:1+mid:6yzc7c6ejdn6iekc+state:results">http://markmail.org/message/6yzc7c6ejdn6iekc#query:drools%20classloader%20problem+page:1+mid:6yzc7c6ejdn6iekc+state:results</a></div>

<div>unfortunately, I could find such file in the 5.1.1 release.</div><div> Other ideas that was tested and failed: 1. Tell Tomcat not to lock resources (configuration properties in context.xml) 2. Put all drools 5.1.1 jars and dependencies in the lib</div>

<div>Any suggestion how to solve this issue?</div><div><br></div><div>Thanks,</div><div>Amit </div><div><br></div><div><br></div></div>