<div dir="ltr">Hi,<div><br></div><div>I am trying to include a another kbase in KIE Spring project. This is the configuration</div><div><br></div><div><b>knowledge-services.xml</b></div><div><div> <kie:kmodule id="kie-spring"> <span class="" style="white-space:pre">        </span></div>
<div> <kie:kbase name="kie-base" <b>includes="rules1Package"</b> packages="au.org.nps.dsaas.rules" ></div><div> <kie:ksession name="ksession1" type="stateless" ></div>
<div> <span class="" style="white-space:pre">        </span><kie:consoleLogger /></div><div> <span class="" style="white-space:pre">        </span></kie:ksession></div><div> </kie:kbase></div><div> </div>
<div> </kie:kmodule></div><div><bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor"/><br></div></div><div><br></div><div><b>kmodule.xml</b></div><div><div><?xml version="1.0" encoding="UTF-8"?></div>
<div><kmodule xmlns="<a href="http://jboss.org/kie/6.0.0/kmodule">http://jboss.org/kie/6.0.0/kmodule</a>"></div><div> <kbase <b>name="rules1Package"</b> packages="au.org.nps.dsaas.rules1" ></div>
<div> <ksession name="ksession2" type="stateless" /></div><div> </kbase></div><div></kmodule></div></div><div><br></div><div>My KIE modules are discovered and I can see following in the logs</div>
<div><div><br></div><div>09:59:36,642 DEBUG [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (ServerService Thread Pool -- 91) Found and used pom.properties META-INF/maven/au.org.nps.dsaas/rules-repository/pom.properties</div>
<div>09:59:36,645 DEBUG [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (ServerService Thread Pool -- 91) Discovered classpath module au.org.nps.dsaas:rules-repository:0.0.1-SNAPSHOT</div></div><div><br></div><div>
But Spring context fails to load and I get the following errors:</div><div><div><br></div><div>09:59:39,547 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (ServerService Thread Pool -- 91) Unable to build KieBase, could not find include: rules1Package</div>
</div><div><br></div><div>As per the official documentation (<a href="http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/ch.kie.spring.html">http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/ch.kie.spring.html</a>) , I can use the includes property of KBASE tag provided in Spring KIE. I am using kie spring 6.1.0 Beta</div>
<div><br></div><div>Any suggestions?</div><div><br></div><div>Thanks</div><div>Ashish</div><div><br></div></div>