title: Spring Boot with Jetty error
body: <p>I have an web application using Spring Boot and a jetty server. I am making calls through ajax but instead of them getting mapped to my Spring Controller they are resulting in an error.</p>
  
  <p>The error:</p>
  
  <pre><code>2016-06-16 18:55:25.450  WARN 11772 --- [tp1170788511-19] o.eclipse.jetty.servlet.ServletHandler   : Error for /test
  java.lang.NoClassDefFoundError: org/eclipse/jetty/http/HttpMethod
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>2016-06-16 18:55:25.451  WARN 11772 --- [tp1170788511-19] o.e.jetty.server.AbstractHttpConnection  : /test
  java.lang.NoClassDefFoundError: org/eclipse/jetty/http/HttpMethod
  </code></pre>
  
  <p>The Ajax:</p>
  
  <pre><code> $.ajax({
      url: "/test",
      type: "POST",
      async: false,,
      success: function (response) {
      ...
      }
  </code></pre>
  
  <p>The Controller:</p>
  
  <pre><code>@Controller
  public class LoginController {
  
  @RequestMapping(value="/test", method=RequestMethod.POST)
  public String countingForm(Model model) {
      System.out.println("test");
      return "test";
  }
  </code></pre>
  
  <p>}</p>
  
  <p>If anyone could shine some light on whats going wrong that would be greatly appreciated.</p>