Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3715

activemq-all.jar is missing the slf4j-log4j12 dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5.1
    • 5.6.0
    • None
    • None

    Description

      According to the documentation [1], the activemq-all.jar should contain all required libraries. However when running a sample project the following error occurs:

      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
      at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)
      at org.apache.activemq.ActiveMQPrefetchPolicy.<clinit>(ActiveMQPrefetchPolicy.java:38)
      at org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:88)
      at org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:131)
      at com.fusesource.example.Producer.<init>(Producer.java:25)
      at com.fusesource.example.DEV3783.main(DEV3783.java:47)
      ... 6 more
      Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
      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 java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 17 more

      [1] http://activemq.apache.org/initial-configuration.html

      Attachments

        1. AMQ3715.patch
          0.9 kB
          Jason Sherman
        2. AMQ3715.patch
          0.5 kB
          Jason Sherman

        Activity

          People

            Unassigned Unassigned
            jsherman1 Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: