wildfly/wildfly — pull request #6204 by baranowb (2014-04-25 15:59:27+00:00)
Title: WFLY-3197

issue: https://issues.jboss.org/browse/WFLY-3197

If external-context-object-factory has module configured, it is used to construct context instance. Later on, context execute in TCCL ~== application, which may not have/can't have dependency on said module. This will cause failure in case Context backbone requires TCCL to be able to load class from module. To mitigate this, we can:
- create class loader which will delegate loading ( applcation CL and module CL ) - this might cause problems
- pass both CLs to factory, if those are required, to perform proper CLing, it can use them.

This is gate #2 fix.