Fixing classloader issues on various containers
Fixed same resource available by multiple classloaders due to classloader hierarchy
Merge pull request #2279 from noctarius/classloader-issues-fix

Fixing classloader issues on various containers (backport)