camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: slf4j and jetty
Date Sat, 12 May 2012 10:04:26 GMT
Hi

Double check that you only have slfj4 1.6 JARs on your classpath

You can run
mvn dependency:tree



On Sat, May 12, 2012 at 11:53 AM, Fitzcaraldo
<Brian.fitzgerald@marlo.com.au> wrote:
> Thanks Claus
>
> Updated slf4j dependency to 1.6.4
>
> <dependency>
>    <groupId>org.slf4j</groupId>
>    <artifactId>slf4j-log4j12</artifactId>
>    <version>1.6.4</version>
>    <scope>test</scope>
> </dependency>
>
> This resulted in this at runtime:
>
> SLF4J: The requested version 1.6 by your slf4j binding is not compatible
> with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
> SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
> details.
> [                          main] MainSupport                  
 INFO  Apache
> Camel 2.9.2 starting
> [                          main] SpringCamelContext             INFO
 Apache
> Camel 2.9.2 (CamelContext: CamelContext1) is starting
> [                          main] ManagementStrategyFactory      INFO
 JMX
> enabled. Using ManagedManagementStrategy.
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
>        at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)
>        at
> org.apache.camel.management.DefaultManagementLifecycleStrategy.doStart(DefaultManagementLifecycleStrategy.java:790)
>        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>        at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
>        at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
>        at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:82)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1478)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420)
>        at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
>        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>        at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
>
>
> ...am I missing something?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/slf4j-and-jetty-tp5706803p5706906.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message