-
Bug
-
Resolution: Done
-
Major
-
7.13.3.GA, IBM BAMOE 8.0.3.GA
Customer is using the IBM Decision Manager environment.
Runs in a jar file. In this case, the DRL file exists under BOOT-INF/classes/.
At this time, a "message:File 'BOOT-INF/classes/rules/common/Sample.drl' is in folder 'BOOT-INF/classes/rules/common' but declares package 'rules.common'. It is advised to have a correspondance between package and folder names." warning message is output.
This message is generated when the path containing the DRL file does not match the path to the package listed in the DRL file.
In this case, however, both had the same path configuration.
Example for configuration of jar file:
BOOT-INFO/classes/
rules
common
Sample.drl
The customer expects the problem to have occurred in the following circumstances.
Handling warning messages in "org/drools/compiler/kie/builder/impl/KieBuilderImpl.java" in drools-compiler-7.67.2.Final-redhat-00006.jar.
The KieBuilderImpl.java class behaves as follows.
a. Stores the path where the DRL file is stored in variable A
b. Stores the path of the package described in the DRL file in variable B.
c. If the value of variable B contains "src.main.resources." "BOOT-INF.classes.", these values were deleted from variable B.
d. "BOOT-INF.classes." is remained in variable A. Because, "BOOT-INF.classes." value was not deleted from variable A.
e. Compare variable A with variable B and output a warning message if they do not match.
f. Unnecessary warning message output when executing drl file due to the above behavior.
Case: https://access.redhat.com/support/cases/#/case/03541387