Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2311

Drools Engine not able to load rules in spring-Boot project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.23.0.Final
    • 7.5.0.Final
    • core engine
    • None

      am using the Drools 7.5.0-final in the spring Boot project.

      I am working on a multi-module Gradle project. Rules and kmodule.xml is present in the sub-module project. This module is packaged as a Jar inside a fat spring boot Jar file.

      I am building the container from the classpath.

      KieContainer kContainer = kieService.newKieClasspathContainer();
      on server start-up (java -jar) it loads the Kmodule.xml and prints all the kbase and sessionName.

      But when I fire rules it returns zero rules fired.

      It works fine when I run as spring boot app from Eclipse. Please help.

        1. Drools-Issue.rar
          456 kB
          Chandresh Mishra

            mfusco@redhat.com Mario Fusco
            chandresh871 Chandresh Mishra (Inactive)
            Tibor Zimányi Tibor Zimányi
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: