title: Attempt to POST to a servlet results in HTTP Status 404 - Could not find resource for relative
body: <p>I've a HTML form:</p>
  
  <pre><code>&lt;form action="rest/ws/addNote" method="post"&gt;
  </code></pre>
  
  <p>I'm trying to POST to this servlet:</p>
  
  <pre><code>@WebServlet("/ws")
  public class AddNote extends HttpServlet {
  
      @POST
      @Path("/addNote")
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // ...
      }
  }
  </code></pre>
  
  <p>But I keep getting </p>
  
  <blockquote>
    <p>HTTP Status 404 - Could not find resource for relative : /ws/addNote of full path: <a href="http://localhost:8080/project/rest/ws/addNote" rel="nofollow">http://localhost:8080/project/rest/ws/addNote</a></p>
  </blockquote>