<div><br></div>   Per,<div><br></div><div>   This looks like a bug. Can you please open a JIRA for it with the information on this e-mail?</div><div><br></div><div>   Thank you,</div><div>      Edson<br><br><div class="gmail_quote">
2011/10/25 Per Sterner <span dir="ltr">&lt;<a href="mailto:pelle711@yahoo.de">pelle711@yahoo.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>

<br>
Yesterday I wanted to upgrade my drools version to 5.3 (from 5.1). I got<br>
the exception &quot;java.lang.NoClassDefFoundError:<br>
de/pelle7/testpackage/event/myEvent (wrong name:<br>
de/pelle7/testpackage/event/MyEvent)&quot; while adding my resources.<br>
I removed the import wildcards and the error disappeard.<br>
<br>
Finally I found the problem:<br>
I used the patternBinding &#39;myEvent&#39; and there is a class called<br>
&#39;MyEvent&#39; and I used an wildcard import where the class &#39;MyEvent&#39; is<br>
located.<br>
<br>
Example code:<br>
&quot;<br>
package de.pelle7.testrules.impl.drools<br>
<br>
import de.pelle7.testpackage.event.*<br>
<br>
rule &quot;Test rule 1&quot;<br>
dialect &quot;java&quot;<br>
salience 50<br>
when<br>
     myEvent : MyEvent( )<br>
     myEvent2 : MyEvent( data == myEvent.data ) &lt;-- here the Exception<br>
is thrown<br>
then<br>
     System.err.println(&quot;Output&quot;);<br>
end<br>
&quot;<br>
My solution is that I replaced all my pattern bindings with the suffix<br>
&#39;$&#39; which is more convenient.<br>
<br>
<br>
Perhaps it would be nice to produce an rule-compilation error. with a<br>
line notice.<br>
<br>
Regard,<br>
<font color="#888888"><br>
   Per Sterner<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>