<br>&nbsp;&nbsp;&nbsp; Thong,<br><br>&nbsp;&nbsp;&nbsp; I&#39;m not sure what the problem may be, but your rule actually does not make any sense... just as an analogy, what you are doing is the same as doing in SQL:<br><br>select * <br>from customer a, (select * from customer b where 
<a href="http://a.name">a.name</a> == &quot;john&quot; or a.city=&quot;la&quot; ) c<br><br>&nbsp;&nbsp;&nbsp; Not sure what you are trying to achieve.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/6/11, Thong Nguyen &lt;
<a href="mailto:thong@gnoht.com">thong@gnoht.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I&#39;m having an issue with the following rule NOT evaluating properly when fired from a rulebase/package built on a web container vs. directly in something like eclipse:
<br><br>rule &quot;Test Rule&quot;<br>&nbsp;no-loop true
<br>when<br>&nbsp;Customer( $name : name, $city : city ) <br>&nbsp;Customer( ($name == &quot;john&quot; || $city == &quot;la&quot;) )<br>then <br>&nbsp;System.out.println(&quot;you qualified&quot;);<br>end<br><br><br>For some reason when I run this rule on a standalone test class (with name set to &quot;john&quot;) it seems to fire and i get the &quot;you qualified&quot; printed out. But the same exact rule, which I have configured to be accessable to fire from within my web application does fire, but will not evaluate to true. I have the same exact code building the package in both situations, same jars and same Customer fact being asserted into session. The only difference I can tell so far is classloaders that was used to load the standalone vs the webapp PackageBuilder config. 
<br><br>From standalone (run from eclipse), I have the following:<br><br>PackageBuilderConfiguration <br>&nbsp; - Compiler set to: 1 (JANINO)<br>&nbsp; - JavaLanguage set to: 1.4<br>&nbsp; - classloader: sun.misc.Launcher$AppClassLoader

<br><br>From webapp, I have the following for config;<br><br>&nbsp; - Compiler set to: 1 (JANINO)<br>
&nbsp; - JavaLanguage set to: 1.4<br>
&nbsp; - classloader: WebappClassLoader<br>&nbsp; delegate: false<br>&nbsp; repositories:<br>&nbsp;&nbsp;&nbsp; /WEB-INF/classes/<br>----------&gt; Parent Classloader:<br>org.apache.catalina.loader.StandardClassLoader@10045eb<br><br>I&#39;m running Tomcat 
5.52 on JVM<small>1.5.0_11-b03<br><br>I&#39;ve tried searching everywhere and can&#39;t seem to figure out what&#39;s going on. My only guess is maybe I have some extra jar loaded in my web container or maybe they are loaded in the wrong order. Any pointers would be great - been at this for the whole day.
<br><br>Thanks for your time,<br>Thong<br><br></small>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>