hi.all,
I working with drools-5.1.1 and just wanted to change my working
knowledgeagent version, which pulls the package binary from the guvnor, to
use local stored BRL files.
As for what I assumed that the KnowledgeAgent is aware of the different
resource types, I simply exchanged in the change-set.xml the resource
location and type specification accordingly to the BRL ones, like the
following:
String ruleFile =
"file://Projects/Workspace/myProject/src/rules/DeadManSwitch.brl";
String xml = "";
xml += "<change-set
xmlns='http://drools.org/drools-5.0/change-set'";
xml += "
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'";
xml += "
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...
";
xml += " <add
";
xml += "
<resource source='" + ruleFile + "'
type='BRL'/
";
xml
+= " </add
";
xml
+= "</change-set
";
All the other things like setting up the KnowledgeAgent, applying the change
set, a.s.o remained the same, but when executing the program I get the
following exception reported:
SEVERE: Run exception: java.lang.RuntimeException:
org.drools.compiler.DroolsParserException:
org.drools.CheckedDroolsException: Unable to find implementation for
BusinessRuleProvider
Stack trace:
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:544)
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:637)
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:889)
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:704)
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:584)
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:185)
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:168)
Any idea what am I missing here?
thx
-hugo
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-Unable...
Sent from the Drools - Dev mailing list archive at
Nabble.com.