[rules-users] 4.0.0.MR3 Problems

Ronald R. DiFrango ron.difrango at gmail.com
Tue Jul 3 11:47:28 EDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070703/3c80ee82/attachment.html 


More information about the rules-users mailing list