Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-5263

Unable to build jbpm project outside of the workbench when including a kbase from a dependency in the pom

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 7.0.0.GA
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      JBoss 7.2 using RedHat PAM 7.4: 7.23.0.Final-redhat-00002

    • Steps to Reproduce:
      Hide

      To reproduce use the info from: https://bugzilla.redhat.com/show_bug.cgi?id=1108070

      Or create two rules projects. Modify the kmodule.xml for each rule project to specify specific kbases and then in the one project include the other project's kbase. For example
      Parent project kmodule.xml:

      <kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <kbase name="parent_process" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="com.parent.*" includes="child_rules_kbase">
      <ksession name="parent_process" type="stateful" default="true" clockType="realtime"/>
      </kbase>
      </kmodule>

      Child kmodule.xml

      <kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <kbase name="child_rules_kbase" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="com.child.*" >
      <ksession name="child_process" type="stateful" default="true" clockType="realtime"/>
      </kbase>
      </kmodule>

      Next add the GAV of the child project as a dependancy to the parent project.
      Next outside the rules workbench do a "mvn clean install" for the child project and then the same for the parent project. You should get an error like this:

      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build (default-build) on project parent_process: Execution default-build of goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build failed: Unable to get KieModule, Errors Existed: Error Messages:
      [ERROR] Message [id=1, kieBase=parent_process, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
      [ERROR] text=Unable to build KieBase, could not find include: child_rules_kbase]

      Show
      To reproduce use the info from: https://bugzilla.redhat.com/show_bug.cgi?id=1108070 Or create two rules projects. Modify the kmodule.xml for each rule project to specify specific kbases and then in the one project include the other project's kbase. For example Parent project kmodule.xml: <kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <kbase name="parent_process" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="com.parent.*" includes="child_rules_kbase"> <ksession name="parent_process" type="stateful" default="true" clockType="realtime"/> </kbase> </kmodule> Child kmodule.xml <kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <kbase name="child_rules_kbase" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="com.child.*" > <ksession name="child_process" type="stateful" default="true" clockType="realtime"/> </kbase> </kmodule> Next add the GAV of the child project as a dependancy to the parent project. Next outside the rules workbench do a "mvn clean install" for the child project and then the same for the parent project. You should get an error like this: [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build (default-build) on project parent_process: Execution default-build of goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build failed: Unable to get KieModule, Errors Existed: Error Messages: [ERROR] Message [id=1, kieBase=parent_process, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0 [ERROR] text=Unable to build KieBase, could not find include: child_rules_kbase]
    • Release Notes Text:
      This is a duplicate of issue: JBPM-8832

      Description

      The issue is very similar to a previous issue: https://bugzilla.redhat.com/show_bug.cgi?id=1108070

      When building a jbpm project outside the workbench on the commandline and including a kbase in the kmodule.xml file, which is from another rules project, and was added as a dependency in the project pom.xml file, I get the following error:

      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build (default-build) on project parent_process: Execution default-build of goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00002:build failed: Unable to get KieModule, Errors Existed: Error Messages:
      [ERROR] Message [id=1, kieBase=parent_process, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
      [ERROR] text=Unable to build KieBase, could not find include: child_rules_kbase]

      When building it inside workbench no errors are thrown and during execution, everything is working correctly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                bvanderwalt Ben-Johan van der Walt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: