You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Reinis Vicups <to...@orbit-x.de> on 2012/10/27 18:34:24 UTC
Multiple slf4j bindings
I am using slf4j-to-log4j binding in my webapp. TomEE is using
slf4j-to-jul. This is what I get when starting webapp by means of tomees
maven plugin with TomEE 1.5.1-SNAPSHOT:
Oct 27, 2012 5:58:36 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
/mypath/target/apache-tomee/webapps/services
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/mypath/target/apache-tomee/lib/slf4j-jdk14-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/mypath/target/apache-tomee/webapps/services/WEB-INF/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
Does it happen because tomee maven plugin somehow load everything with
one classloader or what is the issue here?
Thank you for your hints!
reinis
Re: Multiple slf4j bindings
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Can you share a ready to run project reproducing it please?
Le 27 oct. 2012 18:34, "Reinis Vicups" <to...@orbit-x.de> a écrit :
> I am using slf4j-to-log4j binding in my webapp. TomEE is using
> slf4j-to-jul. This is what I get when starting webapp by means of tomees
> maven plugin with TomEE 1.5.1-SNAPSHOT:
>
> Oct 27, 2012 5:58:36 PM org.apache.openejb.config.**ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application: /mypath/target/apache-tomee/**
> webapps/services
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/mypath/target/**
> apache-tomee/lib/slf4j-jdk14-**1.7.2.jar!/org/slf4j/impl/**
> StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/mypath/target/**
> apache-tomee/webapps/services/**WEB-INF/lib/slf4j-log4j12-1.6.**
> 6.jar!/org/slf4j/impl/**StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.**html#multiple_bindings<http://www.slf4j.org/codes.html#multiple_bindings>for an explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.**JDK14LoggerFactory]
>
> Does it happen because tomee maven plugin somehow load everything with one
> classloader or what is the issue here?
>
> Thank you for your hints!
> reinis
>