<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: 4.0.0-M2: RuleFlow "CannotResolveClassException" error</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">OK, I don't get the error if I use a RFM file instead of a RF file - assuming this to be correct I've changed the wiki entry.</FONT></P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I've also updated the wiki to show how to execute a RuleFlow - not difficult now I know how, but since I spent a while figuring it out thought it worth a mention.</FONT></P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">FYI, I have also successfully added the plugin to IBM RAD7 and conducted a few preliminary checks (nice - I can emphasis the "I" in IDE for my current project at work).</FONT></P>
<UL>
<P><FONT SIZE=1 FACE="Tahoma">_____________________________________________ </FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">From: </FONT></B> <FONT SIZE=1 FACE="Tahoma">Anstis, Michael (M.) </FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">Sent: </FONT></B> <FONT SIZE=1 FACE="Tahoma">09 May 2007 09:51</FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">To: </FONT></B> <FONT SIZE=1 FACE="Tahoma">'Rules Users List'</FONT>
<BR><B><FONT SIZE=1 FACE="Tahoma">Subject: </FONT></B> <FONT SIZE=1 FACE="Tahoma">4.0.0-M2: RuleFlow "CannotResolveClassException" error</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I added the Eclipse 4.0.0-M2 plugin and created an example project; changing the class path to reference core-4.0.0-M2, compiler-4.0.0-M2 and dependencies.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I modified the example to include Ruleflow based upon the wiki entry for 4.0.0-M2 and created a simple RuleFlow with two RuleGroups ("one" and "two") one for each rule in the Sample.drl.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I also modified the DRL to include Rule-Group attributes ("one" and "two"). Unfortunately when running within Eclipse I received the following error:-</FONT></P>
<P><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">com.thoughtworks.xstream.alias.CannotResolveClassException</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">: org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper : org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper</FONT></P>
<P> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">DefaultMapper.java:35</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">XmlFriendlyMapper.java:44</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">ClassAliasingMapper.java:49</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">DynamicProxyMapper.java:46</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">ArrayMapper.java:70</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">MapperWrapper.java:18</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.mapper.CachingMapper.realClass(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">CachingMapper.java:27</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.core.TreeUnmarshaller.start(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">TreeUnmarshaller.java:95</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.core.ReferenceByIdMarshallingStrategy.unmarshal(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">ReferenceByIdMarshallingStrategy.java:12</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT></P>
<P> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.XStream.unmarshal(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">XStream.java:552</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.XStream.unmarshal(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">XStream.java:540</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.thoughtworks.xstream.XStream.fromXML(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">XStream.java:490</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at org.drools.compiler.ProcessBuilder.addProcessFromFile(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">ProcessBuilder.java:54</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.sample.DroolsTest.readRule(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">DroolsTest.java:67</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
<BR> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">at com.sample.DroolsTest.main(</FONT><U><FONT COLOR="#000080" SIZE=2 FACE="Courier New">DroolsTest.java:22</FONT></U><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Suspecting I've missed something obvious can you advise?</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Arial">With kind regards,</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Arial">Michael Anstis</FONT>
</P>
</UL>
</BODY>
</HTML>