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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content