2 Replies Latest reply on May 1, 2015 9:20 AM by clp207

    Error finding kbase name in kjar

    clp207

      I have a kjar with a basic kmodule.xml

       

      <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">

        <kbase name="kbase2" packages="*">

            <ksession name="ksession2"/>

        </kbase>

      </kmodule>

       

      When I deploy my project to jBPM console 6.2.0 Final, I get the following error

       

      java.lang.IllegalStateException: Cannot find kbase, either it does not exist or there are multiple default kbases in kmodule.xml

       

      Do I need to create "kbase2" first? If so, how?

        • 1. Re: Error finding kbase name in kjar
          abhijithumbe

          Hi,

          Can you give a try with following tag:

           

          <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">

            <kbase name="KBase" default="true" packages="*">

               <ksession name="KSession" type="stateful" default="true"/>

            </kbase>

          </kmodule>

          • 2. Re: Error finding kbase name in kjar
            clp207

            Abhhijit,

             

            I ended up having to setup my development environment again for other reasons, and it works with the original configuration now. Thanks for the suggestion, I'll try the changes if I start seeing the error again. The kbase and ksession is still a bit confusing, do I always need to specify a ksession if I specify a kbase? Will there be issues if multiple projects use same kbase and ksession names?