Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1058348

Summary: Unable to deploy a Kie project on EAP if the pom.properties file is not in a subfolder or the one containing the kmodule.xml
Product: [Retired] JBoss BRMS Platform 6 Reporter: Mario Fusco <mfusco>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: agiertli, etirelli, lpetrovi
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:59:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Webapp reproducing this issue none

Description Mario Fusco 2014-01-27 15:49:34 UTC
Created attachment 856123 [details]
Webapp reproducing this issue

The attached web application is a Kie project that when packaged in a war has the file structure pasted below.

Here the pom.properties and pom.xml files are not in one of the subfolders of the folder containing the kmodule.xml file as expected. In this case Drools is unable to locate those files and then to generate a valid KieModule.

target/jboss-servlet-async\ (2)/
|-- META-INF
|   |-- MANIFEST.MF
|   `-- maven
|       `-- org.jboss.quickstarts.eap
|           `-- jboss-servlet-async
|               |-- pom.properties
|               `-- pom.xml
`-- WEB-INF
    |-- classes
    |   |-- async
    |   |   `-- studentRule.drl
    |   |-- META-INF
    |   |   |-- beans.xml
    |   |   `-- kmodule.xml
    |   `-- org
    |       `-- jboss
    |           `-- as
    |               `-- quickstarts
    |                   `-- servlet
    |                       `-- async
    |                           |-- AsynchronousServlet.class
    |                           |-- KieCDIClass.class
    |                           `-- Student.class
    `-- lib

Comment 2 Mario Fusco 2014-01-27 15:55:12 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/ed38d5fd1

Comment 3 Marek Winkler 2014-02-25 09:05:10 UTC
Verified on BRMS 6.0.1 ER1.