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 (Created) (JIRA)" <ji...@apache.org> on 2012/02/13 17:52:59 UTC

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

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


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

        

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

Posted by "Jason Sherman (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Jason Sherman (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

The previous patch was only a partial fix.  It still causes the following output when executing a test program...

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.

I have updated the patch and verified fix.


                
> 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, 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

        

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

Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3715.
-------------------------------

    Resolution: Fixed

Patch applied, with thanks!
                
> 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

        

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

Posted by "Timothy Bish (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reopened AMQ-3715:
-------------------------------


New patch submitted
                
> 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, 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

        

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

Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3715.
-------------------------------

    Resolution: Fixed

updated patch applied, tested and it seems to resolve the issues. 
                
> 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, 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