日期:2014-05-20  浏览次数:20774 次

ActiveMq jms通信
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
        at org.apache.activemq.ActiveMQPrefetchPolicy.<clinit>(ActiveMQPrefetchPolicy.java:38)
        at org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:88)
        at com.cattsoft.utility.jms_activemq.common.Globals.dealConfig(Globals.java:171)
        at com.cattsoft.utility.jms_activemq.common.Globals.readConfig(Globals.java:107)
        at com.cattsoft.utility.jms_activemq.common.Globals.<init>(Globals.java:58)
        at com.cattsoft.utility.jms_activemq.common.Globals.get(Globals.java:234)
        at com.cattsoft.utility.jms_activemq.impl.DefaultJMSReceiver.init(DefaultJMSReceiver.java:122)
        at com.cattsoft.jms.Receiver.start(Receiver.java:39)


从网上查的说是缺少jar包,但是他说的jar我都包含进去了,他还是报错,帮忙看看吧

------解决方案--------------------
把之前生成的.class文件 全部删掉 重新生成试试