[rules-users] Re: 4.0.0.MR3 Problems
Ronald R. DiFrango
ron.difrango at gmail.com
Wed Jul 4 11:43:06 EDT 2007
Mark,
You know what, it was a Drools project. But, it was one created under the
old 3.0.6 version. I wonder if this is a migration issue then?
Ron
On 7/4/07, Mark Proctor <mproctor at codehaus.org> wrote:
>
> Ron,
>
> Could you clarify - in Eclipse was this project created as a standard Java
> project or a Drools project? When Drools creates a project it adds in
> jdt-core from the plugin classpath, which doesn't happen in standard java
> projects. I've check this myself, and it seems to work fine.
>
> Mark
> Mark Proctor wrote:
>
> hmm yes that could be a but with JBoss IDE. I'm using the current
> classloader, suspect i need to use another one.... We want to use the JDT
> that is already in the Eclipse system.
>
> Kris, do you know what classLoader I need to search for Eclipse?
>
> Mark
> Ronald R. DiFrango wrote:
>
> Mark,
>
> I hope you saw that my earlier problem had to do with the fact that the
> JBoss Rules IDE did not include the jar file for theclass Java compiler.
> Once I added it, it started to work. is this a bug in the JBoss Rules IDE
> as I never had to do this before?
>
> Now onto the other problem, does that mean I have to do something like
> drools.getWorkingMemory().getQueryResults() then?
>
> Thanks Again!
>
> Ron
>
> On 7/3/07, Mark Proctor <mproctor at codehaus.org> wrote:
> >
> > We have slimmed down what KnowledgeHelper does, so it only does
> > operations involving the current rules context (i.e. the Tuple of
> > matched data), as KH supplies access to the WorkingMemory you can simply
> > call getQueryResults on that.
> >
> > Mark
> > Ronald R. DiFrango wrote:
> >
> > OK, I got this workinkg now, by adding the jar file
> > core-3.2.3.v_686_R32x.jar from the distribution to my project.
> >
> > Now though when I run it, I get the following error:
> >
> > The method getQueryResults(String) is undefined for the type
> > KnowledgeHelper
> >
> > has getQueryResults been removd in 4.x or renamed?
> >
> > On 7/3/07, Ronald R. DiFrango <ron.difrango at gmail.com> wrote:
> > >
> > > All,
> > >
> > > I am in the process of migrating my 3.0. project to the 4.x series and
> > > when I attempt to run my code I get the following exception when I attempt
> > > to load my .drl files:
> > >
> > > Caused by: org.drools.RuntimeDroolsException : Unable to load dialect
> > > 'org.drools.rule.builder.dialect.java.JavaDialect:java'
> > >
> > > Here is my package builder code:
> > >
> > > static
> > > {
> > > try
> > > {
> > > builder = new PackageBuilder();
> > > builder.addPackageFromDrl( new InputStreamReader(
> > > RtvDecisionEngine.class.getResourceAsStream("rtv.drl" ) ) );
> > > builder.addPackageFromDrl( new InputStreamReader(
> > > RtvDecisionEngine.class.getResourceAsStream ("
> > > modelDiscrepancyRules.drl" ) ) );
> > > ruleBase = RuleBaseFactory.newRuleBase();
> > > ruleBase.addPackage( builder.getPackage() );
> > > }
> > > catch(Exception e)
> > > {
> > > throw new RuntimeException("Failure loading the Rules",
> > > e);
> > > }
> > > }
> > >
> > >
> > > Any thoughts appreciated.
> > >
> > > Ron
> > >
> >
> > ------------------------------
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> ------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
> ------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070704/9528ea40/attachment.html
More information about the rules-users
mailing list