| Summary: | [One-Off Patch] (6.1.4) kie-ci-osgi Activator doesn't register the ClassLoaderResolver on the ServiceRegistry | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Alessandro Lazarotti <alazarot> | ||||||||
| Component: | Fuse Integration | Assignee: | Mario Fusco <mfusco> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Petrlik <jpetrlik> | ||||||||
| Severity: | high | Docs Contact: | Petr Penicka <ppenicka> | ||||||||
| Priority: | high | ||||||||||
| Version: | 6.1.0 | CC: | alazarot, etirelli, lpetrovi, mfusco, mrobson, ppenicka | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | One-off release | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: |
PATCH NAME:
BZ-1293965
PRODUCT NAME:
Red Hat JBoss BRMS
Red Hat JBoss BPM Suite
VERSION:
6.1 Update 4
SHORT DESCRIPTION:
kie-ci-osgi Activator doesn't register the ClassLoaderResolver on the ServiceRegistry
LONG DESCRIPTION:
The issue is that when the kjar is first loaded or reloaded from a scan, it does not get correctly built because the compiler has no viability to the model objects which reside in a different bundle. This is true even though the correct OSGI level imports and exports are defined.
INSTALL REQUIREMENT:
Red Hat JBoss BRMS 6.1 Update 4 or Red Hat JBoss BPM Suite 6.1 Update 4 is required
INSTALL INSTRUCTIONS:
Unzip jboss-brms-6.1.4-BZ-1293965.zip and merge the content from BZ-1293965/maven-repo/ in your own maven repository.
Optionally the commands below can be used:
cd BZ-1293965/
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965-features.xml -DgroupId=org.drools -DartifactId=drools-karaf-features -Dversion=6.2.0.Final-redhat-13-BZ1293965 -Dpackaging=xml -DpomFile=drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965.pom -Dclassifier=features
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=drools-compiler-6.2.0.Final-redhat-13-BZ1293965.jar -Dsources=drools-compiler-6.2.0.Final-redhat-13-BZ1293965-sources.jar -DpomFile=drools-compiler-6.2.0.Final-redhat-13-BZ1293965.pom -DgroupId=org.drools -DartifactId=drools-compiler -Dversion=6.2.0.Final-redhat-13-BZ1293965 -Dpackaging=jar
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=kie-ci-osgi-6.2.0.Final-redhat-13-BZ1293965.jar -Dsources=kie-ci-osgi-6.2.0.Final-redhat-13-BZ1293965-sources.jar -DpomFile=kie-ci-osgi-6.2.0.Final-redhat-13-BZ1293965.pom -DgroupId=org.kie -DartifactId=kie-ci-osgi -Dversion=6.2.0.Final-redhat-13-BZ1293965 -Dpackaging=jar
-----------------
After installed the maven artefacts:
1) Open Fuse console
2) Unistall old features/apps that used the previous features file.
E.g.:
features:uninstall fuse-bxms-switchyard-quickstart-rules-interview
features:uninstall fuse-bxms-switchyard-rules
features:uninstall fuse-bxms-switchyard-common-knowledge
2) Search for references of bundles using drools/kie/jbpm and remove them:
list -t 0 -s | grep drools
list -t 0 -s | grep kie
list -t 0 -s | grep jbpm
For all the Bundles:
osgi:uninstall <BUNDLE_ID>
3) Remove the any old drools-karaf-features url, e.g.:
features:removeurl mvn:org.drools/drools-karaf-features/6.2.0.Final-<version>/xml/features
4) Restart Fuse
5) Add the new features file:
features:addurl mvn:org.drools/drools-karaf-features/6.2.0.Final-redhat-13-BZ1293965/xml/features
6) Install the features:
features:install ...
-----------------
CREATOR:
Alessandro Lazarotti
DATE:
15-Jan-2016
|
Story Points: | --- | ||||||||
| Clone Of: | 1293455 | Environment: | |||||||||
| Last Closed: | 2016-02-22 22:06:02 UTC | Type: | Support Patch | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Bug Depends On: | 1293455 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Comment 3
Mario Fusco
2015-12-23 19:16:09 UTC
Cherry-picked to 6.2.x branch with https://github.com/droolsjbpm/drools/commit/2d58dff9c Product commits: https://code.engineering.redhat.com/gerrit/gitweb?p=droolsjbpm/drools.git;a=commitdiff;h=34444b28430f5f26ac8b27d7172c7029f4bda891 https://code.engineering.redhat.com/gerrit/gitweb?p=droolsjbpm/drools.git;a=commitdiff;h=1ab180e5c28fe4e87d9ecfa3c4f3666ff207b43a Created attachment 1112607 [details]
patch
md5sum jboss-brms-6.1.4-BZ-1293965.zip
4748f979b895a9bb53b6c856b7c00496 jboss-brms-6.1.4-BZ-1293965.zip
1. The name of drools-karaf-features file is wrong. There should be dash ("-featurese.xml") instead of dot (".featurese.xml"):
- file drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965.features.xml should be drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965-features.xml
- this problem appears in directory "BZ-1293965" and in "BZ-1293965/maven-repo/org/drools/drools-karaf-features/6.2.0.Final-redhat-13-BZ1293965" directory.
- If the user will merge patch Maven repository to his Maven repo, then Fuse will not be able to find "drools-karaf-features" file. It will be impossible to install BxMS features.
2. pom.xml is missing in "BZ-1293965/maven-repo/org/drools/drools-karaf-features/6.2.0.Final-redhat-13-BZ1293965". This pom.xml was available for all previous builds of this artifact.
3. Line 23 in "README.txt": File "drools-karaf-features-6.2.0.Final-redhat-6-BZ1293965.jar" is not present in the patch and can not be installed. This line should be removed from readme.
4. Line 25 in "README.txt": The parameter "-Dfile" is correct. However, the command will fail. The reason is described in point 1.
5. Line 50 in "README.txt": The command should be written more generally - for example: features:removeurl mvn:org.drools/drools-karaf-features/6.2.0.Final-<version>/xml/features
Created attachment 1115134 [details]
patch
md5sum jboss-brms-6.1.4-BZ-1293965.zip
e74cb44a14b1826448acf00b9de17beb jboss-brms-6.1.4-BZ-1293965.zip
The patch above contain the README fixes and add the pom for the features.xml.
Created attachment 1115136 [details]
patch
the correct MD5 is the:
md5sum jboss-brms-6.1.4-BZ-1293965.zip
40aab240ed19efaf8ce6f390622966d6 jboss-brms-6.1.4-BZ-1293965.zip
Verified using reproducer attached to BZ#1293455 [1]. It was necessary to change KieSessionService.java in reproducer to achieve the correct behaviour. - line 20 of "KieSessionService.java" should be: kieContainer = kieServices.newKieContainer( kieServices.newReleaseId( groupId, artifactId, version ), this.getClass().getClassLoader() ); ). Regression tests passed successfully. [1] https://bugzilla.redhat.com/attachment.cgi?id=1108448 patch md5sum - 40aab240ed19efaf8ce6f390622966d6 |