Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hi Please Help! JMS Messaging using activemq and jmeter

843830Feb 27 2010 — edited Aug 14 2010
Hi everyone,

I am fairly new to the java platform and am running into difficulties. I am currently running a local activemq on my desktop. I would like to use the jmeter jms point-to-point test to queue up messages sent from jmeter. Every time I run the test found here: http://jakarta.apache.org/jmeter///usermanual/component_reference.html#JMS_Point-to-Point I receive the below error in the jmeter log file. After some investigation i thought it may be the jndi.properties file. So i copied this file over to the jmeter /bin and /lib directories with no luck. Any help is greatly appreciated.

WARN - jmeter.protocol.jms.sampler.JMSSampler: Cannot instantiate class: org.activemq.jndi.ActiveMQInitialContextFactory javax.naming.NoInitialContextException: Cannot instantiate class: org.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.activemq.jndi.ActiveMQInitialContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at org.apache.jmeter.protocol.jms.sampler.JMSSampler.getInitialContext(JMSSampler.java:375)
at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:281)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:469)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:975)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:441)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:433)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:236)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.activemq.jndi.ActiveMQInitialContextFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
... 13 more


Thanks,
Jason
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2010
Added on Feb 27 2010
2 comments
6,267 views