title: Why do I keep getting NoSuchMethodError on LocationAwareLogger when running Jetty?
body: <p>I'm trying to embed Jetty server into my automated tests so I've added the following dependency in my project:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
    &lt;artifactId&gt;jetty-servlet&lt;/artifactId&gt;
    &lt;version&gt;7.6.13.v20130916&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I'm using Jetty 7 because the Web app uses Java 6, Servlet 2.5.</p>
  
  <p>However when I try to start embedded Jetty server, I get:</p>
  
  <pre><code>java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
      at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:607)
      at org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:431)
      at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:69)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.setFailed(AbstractLifeCycle.java:204)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:74)
  </code></pre>
  
  <p>I've been trying to figure out what's wrong but none of the steps I've taken so far addresses the issue. Here's a list of what I've done so far:</p>
  
  <ul>
  <li>Trace transitive dependencies to search for incompatible versions of <code>slf4j-api</code></li>
  <li>Try out different versions of <code>slf4j-api</code> (1.5.11, 1.6.1, 1.6.4, 1.7.5)</li>
  <li>Looked into the some sources of Jetty 7 particularly the pom.xml and found that there's a dependency to slf4j 1.6.1</li>
  <li>Looked into <a href="https://stackoverflow.com/questions/8252597/slf4j-nosuchmethoderror-on-locationawarelogger">this similar question</a> and got <code>null</code> when trying to print <code>org.slf4j.spi.LocationAwareLogger</code>, and <code>org.slf4j.Marker</code></li>
  </ul>
  
  <p>I hope someone can offer a fresh insight into this issue. Thanks.</p>