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

Drools - KieServices.Factory.get() returns null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.36.0.Final
    • core engine
    • None
    • NEW
    • NEW

    Description

      I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the quarkus project, I get a java.lang.NullPointerException.

      After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.

      Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named kie.conf containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various kie.conf files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:

      (https://docs.jboss.org/drools/release/7.14.0.Final/drools-docs/html_single/index.html#_building_and_running_drools_in_a_fat_jar)

      how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..

       

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            ashishsr Ashish Srivastava (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: