Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-84

Producer/Consumer examples gets NoClassDefFoundError on LogFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.2
    • None
    • None
    • None

      If you try to run the simple producer/consumer example from the readme, you get the following:Kevins-MacBook-Pro:fuse-mq-7.0.2.fuse-088 kearls$ java -jar lib/mq-client.jar consumer
      Using destination: queue://TEST, on broker: failover://tcp://localhost:61616
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      at org.fusesource.mq.ActiveMQService.<clinit>(ActiveMQService.java:29)
      at org.fusesource.mq.Main.execute(Main.java:90)
      at org.fusesource.mq.Main.main(Main.java:82)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 3 more
      Kevins-MacBook-Pro:fuse-mq-7.0.2.fuse-088 kearls$

            gtully@redhat.com Gary Tully
            kearls@redhat.com Kevin Earls (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: