How to fix ClassNotFoundException exception on org.jboss.naming.remote.client.InitialContextFactory class while executing a JMS client code using JMS API in BPMS 6 ?

Solution Verified - Updated -


  • BPMS 6 supports the use of JMS messages for starting and managing business processes as well as managing Human Tasks through command request messages [1]. However, when creating the InitialContext the standalone JMS client code throws java.lang.ClassNotFoundException on org.jboss.naming.remote.client.InitialContextFactory as shown below. How to fix this issue?
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.remote.client.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(
        at javax.naming.InitialContext.getDefaultInitCtx(
        at javax.naming.InitialContext.init(
        at javax.naming.InitialContext.<init>(
        at com.sample.test.remote.GetRemoteJMSConnection.getInitialContext(
        ... 33 more
Caused by: java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at com.sun.naming.internal.VersionHelper12.loadClass(
        at javax.naming.spi.NamingManager.getInitialContext(
        ... 371 more

[1] 17.3. JMS


  • 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