Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

getting error trying to integrate Solace with Mulesoft using Solace JMS feature.

I have set all the properties required for the integration. But still I am getting below error
** Cannot instantiate class: com.solacesystems.jndi.SolJNDIInitialContextFactory
java.lang.RuntimeException: org.mule.runtime.api.lifecycle.InitialisationException:
Cannot instantiate class: com.solacesystems.jndi.SolJNDIInitialContextFactory.
I have kept all jars as below in pom.xml
• Commons-lang-.jar
• Commons-logging-.jar
• Geronimo-jms_1.1_spec-.jar
• Sol-common-.jar
• Sol-jcsmp-.jar
• Sol-jms-.jar


  • amackenzieamackenzie Member, Employee Posts: 28 Solace Employee

    It looks like the JARs you mention are not in the Mulesoft classpath. Is there a /lib folder where they are supposed to go within Mulesoft? You need those JARs, yes, but they also must be somewhere that Mulesoft can find them which is specific to the JMS app.

  • Kinjal ShahKinjal Shah Member Posts: 4

    But I am getting this error with mule version 4.3 and with mule 3.9 things are working fine

  • dwille_axwaydwille_axway Member Posts: 7

    @Kinjal Shah - Not sure if it will help with the Mule integration, but I documented the JMS integration with the Axway APIM here:
    Some of the configuration may be transferable.

  • himanshuhimanshu Member, Employee Posts: 9 Solace Employee
    edited May 22

    Hi @Kinjal Shah - I am not an expert in Mulesoft but I tried establishing a connection with my PubSub+ broker and it worked. In your JMS config > General > Required Libraries section, click on Configure and select Add Maven dependency.

    There, paste this:


    Don't change anything else. Click Finish. That should do it.

Sign In or Register to comment.