<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I have an RCP application that uses Jess and have added code to switch to JBoss.  I can create a sample rules project in Eclipse, but when I simply move the rules and the Java source from the JBoss rules project into my RCP, I get extensive errors.  I have added the JBoss builder and the JBoss dependencies to the build path.  I get extensive errors when I merely try to open, edit, or save the drl file, but I tried to run the code anyway.  I guess basic question is how to add JBoss rules to an existing RCP project.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>When the code is executed, it obviously opens the rules because the errors that I get indicate it has opened it.  Here is the exception trace.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">org.drools.rule.InvalidRulePackage: Unable to resolve ObjectType 'Message' : [Rule name=Hello World, agendaGroup=MAIN, salience=0, no-loop=false]</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Unable to resolve ObjectType 'Message' : [Rule name=GoodBye, agendaGroup=MAIN, salience=0, no-loop=true]</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Rule Compilation error : [Rule name=GoodBye, agendaGroup=MAIN, salience=0, no-loop=true]</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_GoodBye_0.java (2:29) : Only a type can be imported. com.sample.DroolsTest.Message resolves to a package</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_GoodBye_0.java (7:267) : message cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_GoodBye_0.java (8:282) : m cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_GoodBye_0.java (8:296) : message cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Rule Compilation error : [Rule name=Hello World, agendaGroup=MAIN, salience=0, no-loop=false]</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (2:29) : Only a type can be imported. com.sample.DroolsTest.Message resolves to a package</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (7:271) : message cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (8:286) : m cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (9:328) : m cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (9:341) : Message.GOODBYE cannot be resolved to a type</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (10:383) : m__Handle__ cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">sample/rules/Rule_Hello_World_0.java (10:396) : m cannot be resolved</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">at org.drools.rule.Package.checkValidity(</SPAN></FONT><FONT class="Apple-style-span" color="#000080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px; text-decoration: underline;">Package.java:368</SPAN></FONT><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">at org.drools.common.AbstractRuleBase.addPackage(</SPAN></FONT><FONT class="Apple-style-span" color="#000080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px; text-decoration: underline;">AbstractRuleBase.java:250</SPAN></FONT><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">at sample.rules.DroolsTest.readRule(</SPAN></FONT><FONT class="Apple-style-span" color="#000080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px; text-decoration: underline;">DroolsTest.java:64</SPAN></FONT><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">at sample.rules.DroolsTest.main(</SPAN></FONT><FONT class="Apple-style-span" color="#000080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px; text-decoration: underline;">DroolsTest.java:21</SPAN></FONT><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV></BODY></HTML>