You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gmdavidson62 <gm...@gmail.com> on 2013/02/10 15:57:53 UTC
migrating from camel 2.7.4 to 10.2.3 error with slf4j
I've tried several combinations of log4j and slf4j...with no success, any
ideas how to proceed, thanks!
Any other information needed?
tomcat:6
jdk:1.6.21
stack trace:
SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError:
org.eclipse.jetty.util.log.Log.getLogger(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
at
org.eclipse.jetty.http.ssl.SslContextFactory.<clinit>(SslContextFactory.java:74)
at
org.apache.camel.component.jetty.JettyHttpComponent.createSslSocketConnector(JettyHttpComponent.java:493)
at
org.apache.camel.component.jetty.JettyHttpComponent.getSslSocketConnector(JettyHttpComponent.java:478)
at
org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:289)
maven dependencies:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.6</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
--
View this message in context: http://camel.465427.n5.nabble.com/migrating-from-camel-2-7-4-to-10-2-3-error-with-slf4j-tp5727303.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: migrating from camel 2.7.4 to 10.2.3 error with slf4j
Posted by gmdavidson62 <gm...@gmail.com>.
Thanks to Claus I was able to get this resolved. It was a classpath issue,
which was obvious, but which one caused the issue, see explanation below.
The jetty dependencies seemed to be ok, except these:
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:7.1.6.v20100715:compile
[INFO] | \-
org.eclipse.jetty:jetty-websocket:jar:7.1.6.v20100715:compile
These were being pulled in from one of our internal api dependencies, they
had a conflict with all the other jetty dependencies:
org.eclipse.jetty:jetty-xxxxxxx:jar:7.5.4.v20111024
As I didn't need the 7.1.6 dependencies in this deployment so I "maven
excluded" them and it worked.
Thanks Claus.
--
View this message in context: http://camel.465427.n5.nabble.com/migrating-from-camel-2-7-4-to-10-2-3-error-with-slf4j-tp5727303p5727310.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: migrating from camel 2.7.4 to 10.2.3 error with slf4j
Posted by gmdavidson62 <gm...@gmail.com>.
Here is the maven dependency tree from maven:
[INFO] [dependency:tree {execution: default-cli}]
[INFO] com.infarmbureau:CSP-Services:war:0.0.1
[INFO] +- com.infarmbureau.esb:ESBClientJava6:jar:2.0.0:compile
[INFO] | \- org.apache.activemq:activemq-optional:jar:5.5.0:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:7.1.6.v20100715:compile
[INFO] | | +- org.eclipse.jetty:jetty-xml:jar:7.1.6.v20100715:compile
[INFO] | | | \-
(org.eclipse.jetty:jetty-util:jar:7.1.6.v20100715:compile - omitted for
conflict with 7.5.4.v20111024)
[INFO] | | \-
(org.eclipse.jetty:jetty-servlet:jar:7.1.6.v20100715:compile - omitted for
conflict with 7.5.4.v20111024)
[INFO] | \-
org.eclipse.jetty:jetty-websocket:jar:7.1.6.v20100715:compile
[INFO] | \-
(org.eclipse.jetty:jetty-server:jar:7.1.6.v20100715:compile - omitted for
conflict with 7.5.4.v20111024)
[INFO] \- org.apache.camel:camel-jetty:jar:2.10.3:compile
[INFO] +- org.eclipse.jetty:jetty-server:jar:7.5.4.v20111024:compile
[INFO] | +-
org.eclipse.jetty:jetty-continuation:jar:7.5.4.v20111024:compile
[INFO] | \- org.eclipse.jetty:jetty-http:jar:7.5.4.v20111024:compile
[INFO] | \- org.eclipse.jetty:jetty-io:jar:7.5.4.v20111024:compile
[INFO] | \-
(org.eclipse.jetty:jetty-util:jar:7.5.4.v20111024:compile - omitted for
conflict with 7.1.6.v20100715)
[INFO] +- org.eclipse.jetty:jetty-security:jar:7.5.4.v20111024:compile
[INFO] | \- (org.eclipse.jetty:jetty-server:jar:7.5.4.v20111024:compile
- omitted for duplicate)
[INFO] +- org.eclipse.jetty:jetty-servlet:jar:7.5.4.v20111024:compile
[INFO] | \-
(org.eclipse.jetty:jetty-security:jar:7.5.4.v20111024:compile - omitted for
duplicate)
[INFO] +- org.eclipse.jetty:jetty-servlets:jar:7.5.4.v20111024:compile
[INFO] | +-
(org.eclipse.jetty:jetty-continuation:jar:7.5.4.v20111024:compile - omitted
for duplicate)
[INFO] | +- (org.eclipse.jetty:jetty-client:jar:7.5.4.v20111024:compile
- omitted for duplicate)
[INFO] | \- org.eclipse.jetty:jetty-util:jar:7.5.4.v20111024:compile
[INFO] +- org.eclipse.jetty:jetty-client:jar:7.5.4.v20111024:compile
[INFO] | \- (org.eclipse.jetty:jetty-http:jar:7.5.4.v20111024:compile -
omitted for duplicate)
[INFO] \- org.eclipse.jetty:jetty-jmx:jar:7.5.4.v20111024:compile
[INFO] \- (org.eclipse.jetty:jetty-util:jar:7.5.4.v20111024:compile -
omitted for duplicate)
--
View this message in context: http://camel.465427.n5.nabble.com/migrating-from-camel-2-7-4-to-10-2-3-error-with-slf4j-tp5727303p5727306.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: migrating from camel 2.7.4 to 10.2.3 error with slf4j
Posted by Claus Ibsen <cl...@gmail.com>.
What version of Jetty are you using? And make sure if you have several
Jetty JARs on the classpath, that they are the same version.
On Sun, Feb 10, 2013 at 3:57 PM, gmdavidson62 <gm...@gmail.com> wrote:
> I've tried several combinations of log4j and slf4j...with no success, any
> ideas how to proceed, thanks!
> Any other information needed?
>
> tomcat:6
>
> jdk:1.6.21
>
> stack trace:
> SEVERE: Exception sending context initialized event to listener instance of
> class org.springframework.web.context.ContextLoaderListener
> java.lang.NoSuchMethodError:
> org.eclipse.jetty.util.log.Log.getLogger(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
> at
> org.eclipse.jetty.http.ssl.SslContextFactory.<clinit>(SslContextFactory.java:74)
> at
> org.apache.camel.component.jetty.JettyHttpComponent.createSslSocketConnector(JettyHttpComponent.java:493)
> at
> org.apache.camel.component.jetty.JettyHttpComponent.getSslSocketConnector(JettyHttpComponent.java:478)
> at
> org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:289)
>
> maven dependencies:
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>1.6.6</version>
> </dependency>
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>1.6.6</version>
> <type>jar</type>
> <scope>compile</scope>
> </dependency>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/migrating-from-camel-2-7-4-to-10-2-3-error-with-slf4j-tp5727303.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen