Bug 1001990

Summary: Drools 6 sample project can't be run
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas Schlosser <tschloss>
Component: Eclipse ToolingAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Schlosser <tschloss>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:15:20 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:

Description Tomas Schlosser 2013-08-28 09:24:32 UTC
Description of problem:
If you create a project with all samples for Drools 6 and try to run the sample classes, you get build errors.

Version-Release number of selected component (if applicable):
BRMS 6.0.0.ER2
JBoss Drools Core 6.0.0.201308222359 org.drools.eclipse.feature.feature.group

How reproducible:


Steps to Reproduce:
1. create new Drools 6 project with all samples
2. run DroolsTest class

Actual results:
java.lang.RuntimeException: Error while creating KieBase

Expected results:
Rules run fine and print the correct output.

Additional info:
The problem is that Sample.xls and Sample.drl use the Message class, but both files use their own definition. This was not problem prior to 6 version, but things changed in Drools 6. Now both files are included in one KieBase, where imports are merged, thus thic conflict.
I see two solutions to this problem:
1) create a common class Message that both rulesets will use
2) modify kmodule.xml to include only packages relevant to the type of KieBase (e.g. for 'rules' KieBase, add attribute 'packages="rules"')

Comment 4 Tomas Schlosser 2014-01-15 11:30:50 UTC
Verified with Drools plugin 6.0.1.Final