You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jason Sherman (Updated) (JIRA)" <ji...@apache.org> on 2012/02/13 17:56:59 UTC

[jira] [Updated] (AMQ-3715) activemq-all.jar is missing the slf4j-log4j12 dependency

     [ https://issues.apache.org/jira/browse/AMQ-3715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Sherman updated AMQ-3715:
-------------------------------

    Attachment: AMQ3715.patch

Patch attached to resolve dependency issue in activemq-all.jar 
                
> activemq-all.jar is missing the slf4j-log4j12 dependency
> --------------------------------------------------------
>
>                 Key: AMQ-3715
>                 URL: https://issues.apache.org/jira/browse/AMQ-3715
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.1
>            Reporter: Jason Sherman
>             Fix For: 5.6.0
>
>         Attachments: AMQ3715.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira