Hi How do you start tomee?
Le mercredi 15 mai 2013, Jack Anamanda <[email protected]> a écrit : > Hi. I'm using the SLF4J logging API and Logback as underlying framework. When > I deploy my webapp on TomEE this works fine and logback.xml gets picked up. > But when I run my TestNG tests in src/test/java outside of TomEE using the > Eclipse TestNG plugin, Logback is being overridden by slf4j-jdk14-1.7.2.jar > and my logback.xml won't be picked up (i.e. Logback is not being used, I > have no control on the logging output format): > > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/C:/Users/Jack/Desktop/eclipse-jee-juno-SR2-win32/apache-tomee-jaxrs-1.5.2/lib/slf4j-jdk14-1.7.2.jar!/org/slf4j/im > pl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/Jack/.m2/repository/ch/qos/logback/logback-classic/1.0.11/logback-classic-1.0.11.jar!/org/slf4j/impl/Sta > ticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > > How can I fix this? Maybe somehow exclude the TomEE lib in maven or > something like that? But How? > > > > -- > View this message in context: http://openejb.979440.n4.nabble.com/slf4j-jdk14-1-7-2-jar-overrides-logback-tp4662958.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > -- *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau*
