java.lang.IllegalStateException error when accessing application that uses RESTEasy Client in JBoss BPM Suite 6

Solution Verified - Updated -

Issue

  • An application uses ClientRequest to access a REST API and when it is deployed to BPMS 6.0.x and accessed, it throws an exception similar to the following:
Caused by: java.lang.IllegalStateException: JBAS016071: Singleton not set for ModuleClassLoader for Module "deployment.bpms6-client-resteasy.war:main" from Service Module Loader. This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.

How to fix this exception ?

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.