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

Issue while installing drools engine on wildfly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Can't Do
    • Critical
    • None
    • 7.34.0.Final
    • core engine
    • Hide

      I am trying to install drools engine in wildfly so that the war gets deployed can use the drools binaries.

       

      Approach 1:

      I have added all the jars in wildfly/modules/drools and created a main.xml with all the resources and added drools as global module.

      For Example, the jars are deployed in the below approach in wildfly

      https://samaxes.com/2012/11/running-drools-5-4-0-final-as-a-jboss-as-7-module/

       

      Approach 2:

      I have created folder structure for every jar and added required jars and added as a dependency in wildfly/modules/drools/main/module.xml with main having the drools core libraries and added drools as global module.

       

      But in both the approaches, the same error throws when I am trying to load .drl files from a dynamic path.

      KieFileSystem kieFileSystem = kieServices.newKieFileSystem();

      KieFileSystem kieFileSystem = kieServices.newKieFileSystem(); kieFileSystem.write(ResourceFactory.newClassPathResource("//home//cloud-user//sliding-rules.drl"));

      KieBuilder kb = kieServices.newKieBuilder(kieFileSystem);

      kb.buildAll();

      Show
      I am trying to install drools engine in wildfly so that the war gets deployed can use the drools binaries.   Approach 1: I have added all the jars in wildfly/modules/drools and created a main.xml with all the resources and added drools as global module. For Example, the jars are deployed in the below approach in wildfly https://samaxes.com/2012/11/running-drools-5-4-0-final-as-a-jboss-as-7-module/   Approach 2: I have created folder structure for every jar and added required jars and added as a dependency in wildfly/modules/drools/main/module.xml with main having the drools core libraries and added drools as global module.   But in both the approaches, the same error throws when I am trying to load .drl files from a dynamic path. KieFileSystem kieFileSystem = kieServices.newKieFileSystem(); KieFileSystem kieFileSystem = kieServices.newKieFileSystem(); kieFileSystem.write(ResourceFactory.newClassPathResource("//home//cloud-user//sliding-rules.drl")); KieBuilder kb = kieServices.newKieBuilder(kieFileSystem); kb.buildAll();
    • NEW
    • NEW

    Description

      Hi,

      While calling buildAll() function, it throws the below error:

      Caused by: java.lang.NoClassDefFoundError: org/codehaus/plexus/interpolation/InterpolationException
      at org.apache.maven.settings.building.DefaultSettingsBuilderFactory.newInstance(DefaultSettingsBuilderFactory.java:62)
      at org.appformer.maven.integration.embedder.MavenSettings.initSettings(MavenSettings.java:91)

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            susmitav sumita sarkhel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: