While executing jms point to point the error is: javax.naming.NoInitialContextException: Cannot instantiate class:

1.6k views Asked by At

The connection is not being established and the error is javax.naming.NoInitialContextException: Cannot instantiate class:com.solacesystems.jndi.SolJNDIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory]

3

There are 3 answers

3
Ori Marko On

You are missing sol-jms-10.3.0.jar which you can download/ use maven from Solace JMS API site.

JMS jars need to be added to JMeter's lib folder. see JMeter classpath:

Other jars (such as JDBC, JMS implementations and any other support libraries needed by the JMeter code) should be placed in the lib directory - not the lib/ext directory, or added to user.classpath.

3
UBIK LOAD PACK On

You need to add in jmeter/lib folder the jar that contains the jndi classes for your JMS implementation.

This might help:

0
27P On

That's definitely the issue of missing dependency of SOL JMS implementation

Please add the one like (gradle example):

implementation 'com.solacesystems:sol-jms:10.6.3'