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

Kie-CI will not load using kie-maven-plugin on WildFly 14+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.46.0.Final
    • build
    • None
    • Hide
      1. Create a Drools project in Maven with the lines below included in the pom.xml file (apologies for formatting)
      2. Boot the Drools project on WildFly 10.0.0.Final (should work)
      3. Boot the Drools project on WildFly 14.0.0.Final or higher (21 is where we're headed) (should throw errors while starting)

      <packaging>kjar</packaging>
      <artifactId>example-validation</artifactId>

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
      <archive>
      <addMavenDescriptor/>
      </archive>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.kie</groupId>
      <artifactId>kie-maven-plugin</artifactId>
      <extensions>true</extensions>
      </plugin>
      </plugins>
      </build>

      <dependencies>
      <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-ci</artifactId>
      <version>${drools.version}</version>
      </dependency>
      <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-compiler</artifactId>
      </dependency>
      </dependencies>

       

      Show
      Create a Drools project in Maven with the lines below included in the pom.xml file (apologies for formatting) Boot the Drools project on WildFly 10.0.0.Final (should work) Boot the Drools project on WildFly 14.0.0.Final or higher (21 is where we're headed) (should throw errors while starting) <packaging>kjar</packaging> <artifactId>example-validation</artifactId> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <addMavenDescriptor/> </archive> </configuration> </plugin> <plugin> <groupId>org.kie</groupId> <artifactId>kie-maven-plugin</artifactId> <extensions>true</extensions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.kie</groupId> <artifactId>kie-ci</artifactId> <version>${drools.version}</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-compiler</artifactId> </dependency> </dependencies>  
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      We have an existing Drools project deployed using 6.5.0.Final on WildFly 10.0.0.Final. When we upgrade to WildFly 14.0.0.Final or higher, our application WARs fail to deploy with the following error message:

      ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 96) MSC000001: Failed to start service jboss.deployment.unit."example.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."example.war".undertow-deployment: java.lang.RuntimeException: java.lang.RuntimeException: Cannot find KieModule: com.package:example-validation:0.0.1

      example-validation:0.0.1 is the Maven child module that contains the Drools rules. It includes kie-ci and drools-compiler per the documentation, as well as the kie-maven-plugin. We tried to upgrade to 7.46.0.Final, but it yielded similar behavior. On build, kie-maven-plugin gives the following messages:

      [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.46.0.Final. To enable the KieScanner you need kie-ci on the classpath

      [INFO] Artifact not fetched from maven: org.kie:kie-ci:7.46.0.Final. To enable the KieScanner you need kie-ci on the classpath

      But kie-ci should already be on the classpath if I'm including it in Maven.

            ant@redhat.com Ant Stephenson
            dentyne19 Denton Wood (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: