[rules-users] Not able to use <kbase includes="" /> in Kie Spring

Ashish Nayyar ashishna at gmail.com
Thu May 8 20:06:52 EDT 2014


Hi,

I am trying to include a another kbase in KIE Spring project. This is the
configuration

*knowledge-services.xml*
 <kie:kmodule id="kie-spring">
    <kie:kbase name="kie-base"
*includes="rules1Package"*packages="au.org.nps.dsaas.rules" >
      <kie:ksession name="ksession1" type="stateless"  >
      <kie:consoleLogger />
      </kie:ksession>
    </kie:kbase>

  </kie:kmodule>
<bean id="kiePostProcessor"
class="org.kie.spring.KModuleBeanFactoryPostProcessor"/>

*kmodule.xml*
<?xml version="1.0" encoding="UTF-8"?>
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
    <kbase *name="rules1Package"* packages="au.org.nps.dsaas.rules1" >
        <ksession name="ksession2" type="stateless" />
    </kbase>
</kmodule>

My KIE modules are discovered and I can see following in the logs

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
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

But Spring context fails to load and I get the following errors:

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

As per the official documentation (
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/ch.kie.spring.html)
, I can use the includes property of KBASE tag provided in Spring KIE. I am
using kie spring 6.1.0 Beta

Any suggestions?

Thanks
Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140509/b72af976/attachment.html 


More information about the rules-users mailing list