Hi

You need to use slfj4 1.6 onwards.

On Sat, May 12, 2012 at 9:45 AM, Fitzcaraldo
<brian.fitzger...@marlo.com.au> wrote:
> Hello
>
> Camel 2.9.2, CXF 2.6.0
>
> I am trying to run a Camel CXF consumer route using the following endpoint
> definition:
>
> <cxf:cxfEndpoint id="TestLogEndpoint"
>    address="http://localhost:9003/Utility/TestLogWS";
>    wsdlURL="META-INF/wsdl/Utility/TestLogWS.wsdl"/>
>
> I have the following dependency
>
> <dependency>
>    <groupId>org.slf4j</groupId>
>    <artifactId>slf4j-log4j12</artifactId>
>    <version>1.5.11</version>
>    <scope>test</scope>
> </dependency>
>
> When I run it I get:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
>        at
> org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:601)
>        at
> org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:425)
>        at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:74)
>        at
> org.eclipse.jetty.util.component.AbstractLifeCycle.setFailed(AbstractLifeCycle.java:199)
>        at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
>        at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:372)
>        at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:171)
>        at
> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
>        at
> org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
>        at
> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836)
>        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
>        at 
> org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java:235)
>        at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>
> Can anyone suggest what I need to do?
>
> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/slf4j-and-jetty-tp5706803.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: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to