[rules-users] RE: 4.0.0-M2: RuleFlow "CannotResolveClassException" error

Edson Tirelli tirelli at post.com
Wed May 9 09:49:19 EDT 2007


   Nice!! Thanks!

2007/5/9, Anstis, Michael (M.) <manstis1 at ford.com>:
>
>  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.
>
> 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.
>
> 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).
>
>    _____________________________________________
>    *From:  * Anstis, Michael (M.)
>    *Sent:  * 09 May 2007 09:51
>    *To:    * 'Rules Users List'
>    *Subject:       * 4.0.0-M2: RuleFlow "CannotResolveClassException"
>    error
>
>    Hi,
>
>    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.
>
>    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.
>
>    I also modified the DRL to include Rule-Group attributes ("one" and
>    "two"). Unfortunately when running within Eclipse I received the following
>    error:-
>
>    *com.thoughtworks.xstream.alias.CannotResolveClassException*:
>    org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper :
>    org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper
>
>            at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(*
>    DefaultMapper.java:35*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at
>    com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(*
>    XmlFriendlyMapper.java:44*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at
>    com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(*
>    ClassAliasingMapper.java:49*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at
>    com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(*
>    DynamicProxyMapper.java:46*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(*
>    ArrayMapper.java:70*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
>    MapperWrapper.java:18*)
>            at com.thoughtworks.xstream.mapper.CachingMapper.realClass(*
>    CachingMapper.java:27*)
>            at com.thoughtworks.xstream.core.TreeUnmarshaller.start(*
>    TreeUnmarshaller.java:95*)
>            at
>    com.thoughtworks.xstream.core.ReferenceByIdMarshallingStrategy.unmarshal
>    (*ReferenceByIdMarshallingStrategy.java:12*)
>
>            at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java
>    :552*)
>            at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java
>    :540*)
>            at com.thoughtworks.xstream.XStream.fromXML(*XStream.java
>    :490*)
>            at org.drools.compiler.ProcessBuilder.addProcessFromFile(*
>    ProcessBuilder.java:54*)
>            at com.sample.DroolsTest.readRule(*DroolsTest.java:67*)
>            at com.sample.DroolsTest.main(*DroolsTest.java:22*)
>
>    Suspecting I've missed something obvious can you advise?
>
>    With kind regards,
>
>    Michael Anstis
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070509/18c087e0/attachment.html 


More information about the rules-users mailing list