<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"><<a href="mailto:pelle711@yahoo.de">pelle711@yahoo.de</a>></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 "java.lang.NoClassDefFoundError:<br>
de/pelle7/testpackage/event/myEvent (wrong name:<br>
de/pelle7/testpackage/event/MyEvent)" 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 'myEvent' and there is a class called<br>
'MyEvent' and I used an wildcard import where the class 'MyEvent' is<br>
located.<br>
<br>
Example code:<br>
"<br>
package de.pelle7.testrules.impl.drools<br>
<br>
import de.pelle7.testpackage.event.*<br>
<br>
rule "Test rule 1"<br>
dialect "java"<br>
salience 50<br>
when<br>
myEvent : MyEvent( )<br>
myEvent2 : MyEvent( data == myEvent.data ) <-- here the Exception<br>
is thrown<br>
then<br>
System.err.println("Output");<br>
end<br>
"<br>
My solution is that I replaced all my pattern bindings with the suffix<br>
'$' 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>