I queried this issue some months back and the response back then was that it couldn't be fixed and that we shouldn't use '$' in the rule files. I suggested back then that the example doco should be updated to reflect this.
<br><br><div><span class="gmail_quote">On 1/16/07, <b class="gmail_sendername">Mark Proctor</b> &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bree,<br><br>Feel free to log it in JIRA for JBoss Rules, however we cannot fix this<br>. You will need to also log a&nbsp;&nbsp;bug&nbsp;&nbsp;in the Janino JIRA for it to be<br>fixed there. My suggestion is to also prove that this doesn&#39;t work with
<br>a standalone Janino use.<br><br>Mark<br>Bree wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I searched the Jboss-rules Jira and didn&#39;t find this issue documented yet,<br>&gt; though I may have missed it.<br>&gt;<br>&gt; Essentially it appears that any rule using the 
U.S. Dollar character ($) in the<br>&gt; rule name fails when compiled with Janino. I was able to reproduce the issue<br>&gt; using the &quot;default&quot; new JBoss-rules project wizard in Eclipse.<br>&gt;<br>&gt; The stack trace follows, though it may not be much help. I tried tracking it
<br>&gt; down and it looks like the problem is actually caused in the parse/compilation<br>&gt; step (i.e. builder.addPackageFromDrl( source );). After this step the rule in<br>&gt; question has a null &quot;consequence&quot;, which causes the
<br>&gt; &quot;AbstractRuleBase.addRule(...)&quot; method to fail when it does the isValid() check.<br>&gt;<br>&gt; &lt;code&gt;<br>&gt; java.lang.IllegalArgumentException: The rule called Show me da $ is not valid.<br>&gt; Check for compile errors reported.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractRuleBase.addRule(Unknown Source)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.reteoo.ReteooRuleBase.addRule(Unknown Source)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sample.DroolsTest.readRule(DroolsTest.java:89)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sample.DroolsTest.main(DroolsTest.java:29)<br>&gt; &lt;/code&gt;<br>&gt;<br>&gt; Please let me know if you require additional information and/or if you&#39;d like me
<br>&gt; to log this in the Jira.<br>&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; Bree<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br>&gt;<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br>