OK Dejan, I gave it a try and I got the same result I got when I tried it
the first time. See the exception and stack trace below.
The error below appears to indicate I'm missing an Apache commons class.
Now I'm pretty sure when I got this the first time
I re-read the required JARS for ActiveMQ section and saw that a commons lib
was included in activemq-all-5.5.0.jar.
Am I mistaken, or do I need to add another JAR to my classpath?
Thanks!
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpMethod
at
org.apache.activemq.transport.http.HttpTransportFactory.createTransport(Http
TransportFactory.java:75)
at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.ja
va:141)
at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.ja
va:51)
at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java
:80)
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnec
tionFactory.java:243)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Activ
eMQConnectionFactory.java:258)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Activ
eMQConnectionFactory.java:230)
at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConne
ctionFactory.java:178)
at JMSActiveMQPublisherApp.Execute(JMSActiveMQPublisherApp.java:39)
at JMSActiveMQPublisherApp.main(JMSActiveMQPublisherApp.java:28)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.httpclient.HttpMethod
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 10 more
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dejan
Bosanac
Sent: Wednesday, May 18, 2011 5:01 AM
To: [email protected]
Subject: Re: Problem with SLF4J
Hi,
take a look at here http://www.slf4j.org/codes.html#StaticLoggerBinder
<http://www.slf4j.org/codes.html#StaticLoggerBinder>You should add some
binder to your classpath.
Regards
--
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/ Blog -
http://www.nighttale.net
Connect at CamelOne <http://camelone.com/> May 24-26
The Open Source Integration Conference
On Wed, May 18, 2011 at 3:49 AM, Michael <[email protected]> wrote:
> I'm trying to run a very simple message producer app.
>
>
>
> I'm starting the app from Eclipse. I've set the Eclipse Run
> Configuration classpath option to point to activemq-all-5.5.0.jar as
> indicated in the required JARs section of the web site.
>
>
>
> This is the first time I'm trying to run ActiveMQ on Windows 7. I had
> been running ActiveMQ on Windows XP in the past.
>
>
>
> The error message I get on the Eclipse console is:
>
>
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
>
> Exception in thread "main" 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.ActiveMQConnection.<clinit>(ActiveMQConnection.jav
> a:109)
>
> at
> JMSActiveMQPublisherApp.<init>(JMSActiveMQPublisherApp.java:15)
>
> at JMSActiveMQPublisherApp.main(JMSActiveMQPublisherApp.java:27)
>
> Caused by: java.lang.ClassNotFoundException:
> org.slf4j.impl.StaticLoggerBinder
>
> at java.net.URLClassLoader$1.run(Unknown Source)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> ... 9 more
>
>
>
> Thanks for the help,
>
> Mike
>
>