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

Bug 1061024

Summary: KieSession cannot be created from kmodule on WebSphere AS
Product: [Retired] JBoss BRMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, rrajasek
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:57:30 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
server log excerpt
none
reproducer web app
none
updated reproducer - can run on lightweight WAS. none

Description Radovan Synek 2014-02-04 09:14:11 UTC
Created attachment 858981 [details]
server log excerpt

Description of problem:
In a reproducer web app, KieSession is being injected into SimpleBean on startup. The injection fails on WebSphere AS 8, because KieSession cannot be created as kmodule hasn't been parsed appropriately. 

Take a look at the classpath protocol wsjar:file, which I believe is the reason pom.properties (and others) cannot be loaded:
INFO org.drools.compiler.kie.builder.impl.ClasspathKieProject - Found kmodule: wsjar:file:/opt/IBM/WAS/8.5.5/profiles/AppSrv01/installedApps/vmg64Node01Cell/kie-cdi-war-web-app-1_0_0-SNAPSHOT_war.ear/kie-cdi-war-web-app-1.0.0-SNAPSHOT.war/WEB-INF/lib/kie-cdi-war-kie-module-1.0.0-SNAPSHOT.jar!/META-INF/kmodule.xml

Version-Release number of selected component (if applicable):
BRMS-6.0.0.CR2

Steps to Reproduce:
1. build the attached reproducer as a maven project
2. deploy kie-cdi-war-example/web-app/target/kie-cdi-war-web-app*.war to WebSphere 8
3. start the application, observe server logs

Comment 1 Radovan Synek 2014-02-04 09:16:14 UTC
Created attachment 858982 [details]
reproducer web app

Comment 2 Radovan Synek 2014-02-04 16:43:41 UTC
Created attachment 859236 [details]
updated reproducer - can run on lightweight WAS.

Comment 3 Mario Fusco 2014-02-04 17:46:21 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/95b6ca874

I tested that my fix works with lightweight (free) WAS, but I cannot try on the paid one so I don't know what happens there.

Comment 4 Radovan Synek 2014-02-21 13:13:27 UTC
Verified with BRMS-6.0.1.ER1