Set the Thread's ContextClassLoader when the JGroups subsystem creates a JGroups channel. JGroups in EAP 6 uses the TCCL first when loading protocols, which may cause it to load the wrong class if the TCCL is not set correctly. This does not affect upstream or EAP 7, as JGroups has changed the order it searches classloaders. (the JGroups change is not being backported here because it is a change in behavior, so just making sure the TCCL is set correctly is safer).
https://github.com/jbossas/jboss-eap/pull/2944
New PR: https://github.com/jbossas/jboss-eap/pull/2945
Verified with EAP 6.4.15.CP.CR2
Released on May 18 as part of EAP 6.4.15.