activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael <mtarullo...@optonline.net>
Subject RE: Problem with SLF4J
Date Thu, 19 May 2011 23:19:29 GMT
Thanks again Dejan.

I think I tried this before too, but I tried it again with all the JARs from
http://hc.apache.org/httpcomponents-client-ga/.

No luck.

What could be missing?  Should I create a classpath environment variable and
point to the JARs and not use the Eclipse Run Configuration Classpath
settings?

I'm off to read the documentation again to see if there is something I
missed.

Mike

-----Original Message-----
From: chubrilo@gmail.com [mailto:chubrilo@gmail.com] On Behalf Of Dejan
Bosanac
Sent: Thursday, May 19, 2011 4:14 AM
To: users@activemq.apache.org
Subject: Re: Problem with SLF4J

Hi,

it seems like you're trying to use http transport and for that you need
commons http client (http://hc.apache.org/httpcomponents-client-ga/)


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 Thu, May 19, 2011 at 1:43 AM, Michael <mtarullo463@optonline.net> wrote:

> 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.createTranspor
> t(Http
> TransportFactory.java:75)
>        at
>
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFact
> ory.ja
> va:141)
>        at
>
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFact
> ory.ja
> va:51)
>        at
>
> org.apache.activemq.transport.TransportFactory.connect(TransportFactor
> y.java
> :80)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQ
> Connec
> 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(ActiveM
> QConne
> 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: chubrilo@gmail.com [mailto:chubrilo@gmail.com] On Behalf Of 
> Dejan Bosanac
> Sent: Wednesday, May 18, 2011 5:01 AM
> To: users@activemq.apache.org
> 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 <mtarullo463@optonline.net>
> 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.j
> > av
> > 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
> >
> >
>
>


Mime
View raw message