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