BZ-1038229 - JMS API is unable to load a class in the deployment with some requests
(cherry picked from commit 6133ff2da0e417592917618ef4cf87e36ceffb67)