Red Hat Bugzilla – Bug 1031088
Errai reflections jar in modules generate problems when multiple Errai webapps are installed in the same server
Last modified: 2015-06-01 21:35:37 EDT
FSW: We have found an issue that is blocking our use of the current module
structure, discovered when we went to package multiple Errai based
consoles into the same server.
The kie lib module contains the Errai reflections jar and, through that,
we are seeing classes leak from one war context into the other. This is
causing ClassCastExceptions to be raised.
We are trying to find a workaround for this problem however it is
beginning to look like we may need this to be fixed within the BRMS/BPMS
Probably it would be enough to move the errai reflections jar to the webapp, and remove it from the kie lib module.
Two errai artifacts have been removed from org.kie.lib module:
This artifacts will be located in the webapp library as none module uses them.
Commit on 6.0.X
Commit on master
To be sure, I have verified the maven dependency tree for artifacts:
Artifact (1) is used by org.jboss.errai:errai-bus:jar, and artifact (2) is used by org.guvnor:guvnor-workingset-api:jar, both artifacts are located in the webapp classloader, so moving those errai artifacts to webapp classloader will have no impact in modules behaviour.
This is rather internal productization issue, which was fixed in ER5, where EAP 6.1.1 modules are supported.
Verified in ER5.