-1

I am using Kie workbench 6.3.0 to create rules. I am using kie server runtime. I have created project in kie-wb and added kie-base, packages and have set to stream mode from Project Editor. Following is the kmodule.xml generated:

<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="myKieBase" default="false" eventProcessingMode="stream" equalsBehavior="identity" packages="*"/>
</kmodule>

While deploying project it is giving the following error:

Deployment of unit com.sample.SampleBusinessRules:2.7 failed: java.lang.IllegalStateException: Cannot find kbase, either it is not exist or there are multiple default kbases in kmodule.xml

Please help me to solve this error. Thank you

Pradnya J
  • 91
  • 1
  • 7
  • Are you using your own runtime? Are you using the kie-server to run your kie-bases? How are you creating your kie-base in the first place (if you are not using kie-server)? How does your kcontext.xml file look like? – Esteban Aliverti Aug 27 '16 at 09:59
  • Add detail/code to your question. – Naved Alam Aug 27 '16 at 14:13
  • Thanks Esteban and Naved for your response. We are using Kie server runtime. I am creating Kie-base using kie-workbench. @Esteban Did you meant by kcontext.xml as kmodule.xml? – Pradnya J Aug 29 '16 at 06:29
  • If you want kmodule.xml file content then it is as follows The content is automatically generated in the file in kie-wb from Project Editor when we create kie-base and packages and set stream mode to the project. – Pradnya J Aug 29 '16 at 06:29
  • Yes, sorry, I meant kmodule.xml. When is this error exactly happening? Have you tried having 1 default kie-base in your kmodule.xml? – Esteban Aliverti Aug 29 '16 at 07:30
  • Thank you Esteban for sparing your time for this issue. I have resolved this issue. :-) – Pradnya J Aug 29 '16 at 11:23
  • By adding these tags in my kmodule.xml – Pradnya J Aug 29 '16 at 11:25
  • @EstebanAliverti can you help me with this error http://stackoverflow.com/questions/39209152/error-calling-container-kiecontainer – Pradnya J Aug 30 '16 at 11:29
  • where to create Kie-base using kie-workbench? cant find it. – Scholle May 23 '18 at 18:17

1 Answers1

3

By adding these tags in my kmodule.xml my issue resolved.

 <kmodule xmlns="jboss.org/kie/6.0.0/kmodule"; xmlns:xsi="w3.org/2001/XMLSchema-instance">; 
    <kbase name="defaultKieBase" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="*"> 
      <ksession name="defaultKieSession" type="stateful" default="true" clockType="realtime" scope="javax.enterprise.context.ApplicationScoped"/> 
<ksession name="defaultStatelessKieSession" type="stateless" default="true" clockType="realtime" scope="javax.enterprise.context.ApplicationScoped"/> </kbase> 
    </kmodule>
Pradnya J
  • 91
  • 1
  • 7