title: Class path contains multiple SLF4J bindings (can't found it)
body: <p>I know there's plenty questions like this in StackOverflow, but can't figure it how to resolve my problem:</p>
  
  <p>I'm trying to use logback, but when I try to launch my app, I'm getting this error:</p>
  
  <pre><code>SLF4J: Class path contains multiple SLF4J bindings.
  SLF4J: Found binding in [jar:file:/var/lib/tomcat8/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/var/lib/tomcat8/webapps/ROOT/WEB-INF/lib/logback-classic-1.1.2.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.Log4jLoggerFactory]
  log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  </code></pre>
  
  <p>Note that how the actual binding is instead Log4j and tried to start log4j, but no appenders found.</p>
  
  <p>I know I have to exclude those libraries who use log4j, I can not figure out which are.</p>
  
  <p>I can't use mvn dependency:tree because it fails due to dependencies with others projects which are implied </p>
  
  <pre><code>8 required artifacts are missing.
  </code></pre>
  
  <p>From the "Dependency Hierarchy" view in eclipse, still can't find them.</p>
  
  <p>Here is my pom.xml</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
      &lt;artifactId&gt;floox&lt;/artifactId&gt;
      &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  &lt;artifactId&gt;floox-business&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;Floox Business&lt;/name&gt;
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;io.spring.platform-version&gt;1.1.1.RELEASE&lt;/io.spring.platform-version&gt;
      &lt;!-- AssertJ is not a part of Spring IO platform, so the version must be 
          provided explicitly --&gt;
      &lt;assertj-core-version&gt;1.5.0&lt;/assertj-core-version&gt;
      &lt;config.root&gt;src/main/config&lt;/config.root&gt;
  &lt;/properties&gt;
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.spring.platform&lt;/groupId&gt;
              &lt;artifactId&gt;platform-bom&lt;/artifactId&gt;
              &lt;version&gt;${io.spring.platform-version}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  &lt;dependencies&gt;
      &lt;!-- Spring --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Security --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- View --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-spring4&lt;/artifactId&gt;
          &lt;!-- Avoid org.hibernate.jpa.boot.archive.spi.ArchiveException: Could 
              not build ClassFile in Java 8 --&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;javassist&lt;/artifactId&gt;
                  &lt;groupId&gt;org.javassist&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.thymeleaf.extras&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-extras-springsecurity3&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Persistence --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
          &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;!-- Avoid issue #72 Could not initialize class org.thymeleaf.templateresolver.ServletContextTemplateResolver 
              due to 'validation is not supported' --&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;pull-parser&lt;/artifactId&gt;
                  &lt;groupId&gt;pull-parser&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;!-- Avoid: javax.validation.ValidationException: HV000183: Unable to load 
          'javax.el.ExpressionFactory' --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.el&lt;/groupId&gt;
          &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
          &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring Data --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Validation --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Logging --&gt;
      &lt; &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
          &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- @Inject --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.inject&lt;/groupId&gt;
          &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Servlet --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- JSON --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Utilities --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
          &lt;artifactId&gt;guava&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Test --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.assertj&lt;/groupId&gt;
          &lt;artifactId&gt;assertj-core&lt;/artifactId&gt;
          &lt;version&gt;${assertj-core-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
          &lt;artifactId&gt;hamcrest-core&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
          &lt;artifactId&gt;hamcrest-library&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.objenesis&lt;/groupId&gt;
          &lt;artifactId&gt;objenesis&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.sf.dozer&lt;/groupId&gt;
          &lt;artifactId&gt;dozer&lt;/artifactId&gt;
          &lt;version&gt;5.5.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;engine-indexer-dto&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;temporal-hits-dto&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-cloudsearch&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-dto&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-aop&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-memcached&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-utils&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv&lt;/groupId&gt;
          &lt;artifactId&gt;floox-token&lt;/artifactId&gt;
          &lt;version&gt;${project.parent.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.i3tv.a3cms.social&lt;/groupId&gt;
          &lt;artifactId&gt;a3cms-social-user&lt;/artifactId&gt;
          &lt;version&gt;${social.version}&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;de.javakaffee.msm&lt;/groupId&gt;
          &lt;artifactId&gt;msm-kryo-serializer&lt;/artifactId&gt;
          &lt;version&gt;1.9.0-RC1&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;!-- Configuración de los perfiles --&gt;
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;local&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;resources&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;${config.root}/local&lt;/directory&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/*&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/resource&gt;
              &lt;/resources&gt;
          &lt;/build&gt;
          &lt;properties&gt;
              &lt;profile.name&gt;local&lt;/profile.name&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
      &lt;!-- &lt;profile&gt; --&gt;
      &lt;!-- &lt;id&gt;pre&lt;/id&gt; --&gt;
      &lt;!-- &lt;build&gt; --&gt;
      &lt;!-- &lt;resources&gt; --&gt;
      &lt;!-- &lt;resource&gt; --&gt;
      &lt;!-- &lt;directory&gt;${config.root}/pre&lt;/directory&gt; --&gt;
      &lt;!-- &lt;includes&gt; --&gt;
      &lt;!-- &lt;include&gt;**/*&lt;/include&gt; --&gt;
      &lt;!-- &lt;/includes&gt; --&gt;
      &lt;!-- &lt;/resource&gt; --&gt;
      &lt;!-- &lt;/resources&gt; --&gt;
      &lt;!-- &lt;/build&gt; --&gt;
      &lt;!-- &lt;properties&gt; --&gt;
      &lt;!-- &lt;serverId&gt;aeb-pro&lt;/serverId&gt; --&gt;
      &lt;!-- &lt;applicationName&gt;Flux&lt;/applicationName&gt; --&gt;
      &lt;!-- &lt;environmentName&gt;flux-pre&lt;/environmentName&gt; --&gt;
      &lt;!-- &lt;cnamePrefix&gt;flux-pre&lt;/cnamePrefix&gt; --&gt;
      &lt;!-- &lt;s3Bucket&gt;flux-pre&lt;/s3Bucket&gt; --&gt;
      &lt;!-- &lt;profile.name&gt;pre&lt;/profile.name&gt; --&gt;
      &lt;!-- &lt;/properties&gt; --&gt;
      &lt;!-- &lt;/profile&gt; --&gt;
      &lt;profile&gt;
          &lt;id&gt;pre&lt;/id&gt;
          &lt;build&gt;
              &lt;resources&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;${config.root}/pre&lt;/directory&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/*&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/resource&gt;
              &lt;/resources&gt;
          &lt;/build&gt;
          &lt;properties&gt;
              &lt;serverId&gt;aeb-pre&lt;/serverId&gt;
              &lt;applicationName&gt;floox-PRE&lt;/applicationName&gt;
              &lt;environmentName&gt;flooxPre-env&lt;/environmentName&gt;
              &lt;cnamePrefix&gt;flooxpre-env&lt;/cnamePrefix&gt;
              &lt;s3Bucket&gt;fluxpre&lt;/s3Bucket&gt;
              &lt;profile.name&gt;pre&lt;/profile.name&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;pro&lt;/id&gt;
          &lt;build&gt;
              &lt;resources&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;${config.root}/pro&lt;/directory&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/*&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/resource&gt;
              &lt;/resources&gt;
          &lt;/build&gt;
          &lt;properties&gt;
              &lt;serverId&gt;aeb-pro&lt;/serverId&gt;
              &lt;applicationName&gt;Flux&lt;/applicationName&gt;
              &lt;environmentName&gt;flux-pro&lt;/environmentName&gt;
              &lt;cnamePrefix&gt;flux-pro&lt;/cnamePrefix&gt;
              &lt;s3Bucket&gt;flux-pro&lt;/s3Bucket&gt;
              &lt;profile.name&gt;pro&lt;/profile.name&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;!-- Fin de la configuración de los perfiles --&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;path&gt;/&lt;/path&gt;
              &lt;/configuration&gt;
          &lt;/plugin&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.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${java-version}&lt;/source&gt;
                  &lt;target&gt;${java-version}&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;webResources&gt;
                      &lt;resource&gt;
                          &lt;directory&gt;${config.root}/${profile.name}/ebextensions&lt;/directory&gt;
                          &lt;targetPath&gt;.ebextensions&lt;/targetPath&gt;
                      &lt;/resource&gt;
                  &lt;/webResources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;deploy&lt;/id&gt;
                      &lt;phase&gt;deploy&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;sources&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.7&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;br.com.ingenieux&lt;/groupId&gt;
              &lt;artifactId&gt;beanstalk-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;serverId&gt;${serverId}&lt;/serverId&gt;
                  &lt;environmentName&gt;${environmentName}&lt;/environmentName&gt;
                  &lt;region&gt;eu-west-1&lt;/region&gt;
                  &lt;applicationName&gt;${applicationName}&lt;/applicationName&gt;
                  &lt;s3Bucket&gt;${s3Bucket}&lt;/s3Bucket&gt;
                  &lt;s3Key&gt;${project.artifactId}/${project.build.finalName}-${maven.build.timestamp}.war&lt;/s3Key&gt;
                  &lt;cnamePrefix&gt;${cnamePrefix}&lt;/cnamePrefix&gt;
                  &lt;solutionStack&gt;64bit Amazon Linux running Tomcat 7&lt;/solutionStack&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;deploy&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;upload-source-bundle&lt;/goal&gt;
                          &lt;goal&gt;create-application-version&lt;/goal&gt;
                          &lt;goal&gt;update-environment&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>