Hibernate and Bundle ClassLoaders out of sync on Bundle Refresh
Description
Activity
Show:

Matt Robson December 4, 2015 at 8:16 PM
Thanks! I will build and give it a test on Monday with the added cleanup changes.

Brett Meyer December 4, 2015 at 6:17 AM
This will be fixed purely in 4.2 and 4.3. 5.x's OSGi classloader handling has significantly changed, so this will be handled in through a different approach.

Guillaume Nodet December 3, 2015 at 2:16 PM
I've replied to your comments in the PR.

Brett Meyer December 3, 2015 at 12:37 AM
, thanks for the verification. The fix is definitely needed, but have a couple of comments on 's PR that might help clean things up even more.

Matt Robson December 2, 2015 at 11:35 PM
@Brett Meyer I have tested a local build of this PR in Fuse 6.1 against my reference project @ https://github.com/mrobson/fuse-cxf-hibernate-xa
It has resolved the issues around restart the PU bundle and deploying updated code which triggers an osgi:refresh of the PU bundle without touching the hibernate bundles.
After persistent unit bundles are refreshed, hibernate still use the old class loader, leading to ClassCastException.
See https://issues.jboss.org/browse/ENTESB-4495