Bug 1050987
| Summary: | Kie-spring cannot create KieModule in EWS 2.0.1 Tomcat 7 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Winkler <mwinkler> | ||||
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Winkler <mwinkler> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | etirelli, rrajasek, rzhang | ||||
| Target Milestone: | CR1 | Keywords: | Regression | ||||
| 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:18:56 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
Marek Winkler
2014-01-09 13:17:53 UTC
Created attachment 847730 [details]
Maven project with WAR illustrating the issue
I have investigated the problem and found out that the issue is related to the location of pom.properties in the WAR which is being deployed onto EWS: 1. if the WAR contains pom.properties in META-INF/maven/groupId/artifactId/pom.properties file, kie-spring loads fine, 2. if the WAR contains pom.properties in WEB-INF/classes/META-INF/maven/groupId/artifactId/pom.properties, the above NPE is thrown and kie-spring fails to load the KieModule. You can use the attached maven project to generate WAR for experiments - the WAR illustrates the first variant. If you just open it and move META-INF folder into WEB-INF/classes, you will get the NPE. I am leaving this issue open for two reasons: - the NPE should not happen - user should probably get more user-friendly message in the log, - afaik, the META-INF directory can actually be located in a WAR in two places (/ and WEB-INF/classes) [1] - I suggest we support both locations to avoid potential problems for our users. Having said that, I think that this issue might not necessarily be a blocker for 6.0.0. [1] http://stackoverflow.com/questions/17997731/maven-war-has-meta-inf-folder-in-two-places Fixed by https://github.com/droolsjbpm/drools/commit/2752ec9c3 and https://github.com/droolsjbpm/droolsjbpm-integration/commit/3c5e450a7 Verified on BRMS 6.0.0 CR1. |