title: How to package webapp when using slf4j/logback?
body: <p>I have lots of web applications to build/package, and I would like to share their common libraries.</p>
  
  <p>Regarding logging, I would like to bundle slf4j-api with each application, but consider the implementation as provided by my container (which is tomcat currently)</p>
  
  <p>To do so, I copied the two jars, logback-classic and logback-core into $CATALINA\lib directory.</p>
  
  <p>Unfortunately, at runtime, the binding between slf4j and its implementation fails with the following error message:</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  </code></pre>
  
  <p>The only way I managed to make it work is when bundling the jar in the war files.</p>
  
  <p>Any ideas?</p>