I just pushed a fix to 4.3 branch that adds a property, hibernate.classloading.use_current_tccl_as_parent. This fix does not affect master. If there are still problems with master, please deal with them in a different Jira issue.
The value for hibernate.classloading.use_current_tccl_as_parent determines whether the thread context ClassLoader for this Thread (TCCL) should use the current TCCL as parent ClassLoader. The default is true (which still causes problems for GlassFish).
By setting hibernate.classloading.use_current_tccl_as_parent=false, the behavior will be the same as before
HHH-8818
was fixed.
I have not tested this code because I do not have GlassFish set up. Could someone please give this a try and confirm that it works for you?
|