title: Maven and Spring - SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
body: <p>I'm building a new spring web application which uses maven for dependency management. I am trying to use slf4j-api and slf4j-simple. I added them to my pom file, but when I build I get the 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>Which is indicative of slf4j not having an implementation, however, slf4j-simple is include in my pom. Below is my pom.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;foo.bar&lt;/groupId&gt;
    &lt;artifactId&gt;name&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;name&lt;/name&gt;
  
  
      &lt;properties&gt;
          &lt;org.springframework.version&gt;3.1.0.RELEASE&lt;/org.springframework.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework.version}&lt;/version&gt;
               &lt;exclusions&gt;
                    &lt;exclusion&gt;
                        &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                        &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                    &lt;/exclusion&gt;
               &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jstl&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
               &lt;version&gt;3.6.3.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
            &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
            &lt;version&gt;1.6.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
              &lt;version&gt;1.6.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.jtds&lt;/groupId&gt;
              &lt;artifactId&gt;jtds&lt;/artifactId&gt;
              &lt;version&gt;1.2.4&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;finalName&gt;ROOT&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.1.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;packagingExcludes&gt;WEB-INF/web.xml&lt;/packagingExcludes&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;    
  </code></pre>
  
  <p>Below is my maven dependency tree:</p>
  
  <pre><code>[INFO] foo.bar:name:war:0.0.1-SNAPSHOT
  [INFO] +- org.springframework:spring-context:jar:3.1.0.RELEASE:compile
  [INFO] |  +- org.springframework:spring-aop:jar:3.1.0.RELEASE:compile
  [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
  [INFO] |  +- org.springframework:spring-beans:jar:3.1.0.RELEASE:compile
  [INFO] |  +- org.springframework:spring-core:jar:3.1.0.RELEASE:compile
  [INFO] |  +- org.springframework:spring-expression:jar:3.1.0.RELEASE:compile
  [INFO] |  \- org.springframework:spring-asm:jar:3.1.0.RELEASE:compile
  [INFO] +- org.springframework:spring-webmvc:jar:3.1.0.RELEASE:compile
  [INFO] |  +- org.springframework:spring-context-support:jar:3.1.0.RELEASE:compile
  [INFO] |  \- org.springframework:spring-web:jar:3.1.0.RELEASE:compile
  [INFO] +- jstl:jstl:jar:1.2:compile
  [INFO] +- org.hibernate:hibernate-core:jar:3.6.3.Final:compile
  [INFO] |  +- antlr:antlr:jar:2.7.6:compile
  [INFO] |  +- commons-collections:commons-collections:jar:3.1:compile
  [INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
  [INFO] |  +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
  [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
  [INFO] |  \- javax.transaction:jta:jar:1.1:compile
  [INFO] +- org.slf4j:slf4j-api:jar:1.6.6:compile
  [INFO] +- org.slf4j:slf4j-simple:jar:1.6.6:compile
  [INFO] \- net.sourceforge.jtds:jtds:jar:1.2.4:compile
  </code></pre>
  
  <p>Any ideas on what could be wrong? Thanks.</p>