Hi All,

I'm facing a problem when i have both *.drl and *.dsl. The following is the 
exception i'm facing. 

java.lang.IllegalArgumentException: Unable to use expander. Make sure a 
expander or dsl config is being passed to the parser. [ExpanderResolver was not 
set].
        at org.drools.lang.RuleParser.expander(Unknown Source)
        at org.drools.lang.RuleParser.prolog(Unknown Source)
        at org.drools.lang.RuleParser.compilation_unit(Unknown Source)
        at org.drools.compiler.DrlParser.compile(Unknown Source)
        at org.drools.compiler.DrlParser.parse(Unknown Source)
        at org.drools.compiler.DrlParser.parse(Unknown Source)
        at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
        at com.livetrial.CreditExample.main(CreditExample.java:24)
Exception in thread "main" 


In the main java class, i have the below codes:

builder.addPackageFromDrl( new 
InputStreamReader(CreditExample.class.getResourceAsStream("/credit.drl" )) );
                builder.addPackageFromDrl( new 
InputStreamReader(CreditExample.class.getResourceAsStream("/credit.dsl" )) );
                
Please guide me on how to resolve this problem.


Thanks
Bindhu

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172282#4172282

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172282
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to