<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have encountered the same problem.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Running Drools  5.1.1 and after redeploying the rules activation behave differently than before. It is as if some of the rules are removed\non active  in the rules engine.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have checked if this is indeed the case by printing all rules in the active memory, they all seem to be in place.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Any ideas?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hezi<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Amit Friedman<br><b>Sent:</b> Thursday, June 16, 2011 9:58 AM<br><b>To:</b> rules-users@lists.jboss.org<br><b>Subject:</b> [rules-users] rules doesn't run after redeploying my application EAR in Jboss<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Hello,<o:p></o:p></p><div><p class=MsoNormal>I am running JBoss 5.1.0 GA with drools 5.1.1 (added run-time libraries).<o:p></o:p></p></div><div><p class=MsoNormal>I have several DRL files which resides outside my EAR in a 'rules' directory.<o:p></o:p></p></div><div><p class=MsoNormal>When the EAR loads, I am loading the DRLs using:<o:p></o:p></p></div><div><p class=MsoNormal><i>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</i><o:p></o:p></p></div><div><p class=MsoNormal><i>for(...) {</i><o:p></o:p></p></div><div><p class=MsoNormal><i>&nbsp; &nbsp; &nbsp;kbuilder.add(ResourceFactory.newFileResource(file), ResourceType.DRL);</i>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>}<o:p></o:p></p></div><div><p class=MsoNormal>That works fine.<o:p></o:p></p></div><div><p class=MsoNormal>When I do redeploy of the EAR, this code passed successfully, but the rules won't run anymore.<o:p></o:p></p></div><div><p class=MsoNormal>When I switch to drools 5.0.1 run-time libraries, it returns to work.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>I need to work with 5.1.1 since I use some of the new features.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I found an old post that was answered by Mark Proctor suggesting to use a single drools-all.jar:&nbsp;<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><o:p></o:p></p></div><div><p class=MsoNormal>unfortunately, I could find such file in the 5.1.1 release.<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;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&nbsp;dependencies in the lib<o:p></o:p></p></div><div><p class=MsoNormal>Any suggestion how to solve this issue?<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Amit&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>