You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Scott <li...@hotmail.com> on 2011/06/18 15:01:27 UTC

Error message about ActiveMQConnectionFactory

Hi All, 

I am new to Java and Activemq, and i try to create a message queue
application in eclipse. I copy code from
http://activemq.apache.org/hello-world.html.

But i can't make it work, i have added activemq-all-5.5.0.jar and
slf4j-log4j12-1.6.1.jar file. but i got a error as below:

Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not
initialize class org.apache.activemq.ActiveMQPrefetchPolicy
	at
org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:88)
	at
org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:131)
	at Publisher$HelloWorldProducer.run(Publisher.java:59)
	at java.lang.Thread.run(Unknown Source)

Can anyone give me a help?

by the way, i am not sure whether it is caused by "JNDI", i don't really
know what is it. But i saw it in 
http://activemq.apache.org/initial-configuration.html.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-message-about-ActiveMQConnectionFactory-tp3607750p3607750.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.