title: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
body: <p>My application is to be deployed on both tcServer and WebSphere 6.1. This application uses ehCache and so requires slf4j as a dependency.
  As a result I've added the slf4j-api.jar (1.6) jar to my war file bundle.</p>
  
  <p>The application works fine in tcServer except for the following error:</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>However, when I deploy in WebSphere I get a <code>java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder</code>.</p>
  
  <p>Also accompanied by <code>Failed to load class "org.slf4j.impl.StaticMDCBinder"</code></p>
  
  <p>I've checked the classpaths of both application servers and there is no other slf4j jar.</p>
  
  <p>Does anyone have any ideas what may be happening here?</p>