title: HTTP Status 405 - Method Not Allowed Error on Invoking a DELETE method using WebServices
body: <p>I am trying to delete a "Contact" from the "Contacts" table using the following @DELETE method (using Jersey Framework (JAX-RS implementation)</p>
  
  <pre><code>@DELETE
  @Path("/delete/{contact}")
  public String deleteContact(@PathParam("contact") String name) throws ClassNotFoundException, SQLException {
  
      String response = DAOaccess.deleteContact(name);
      return response; 
  }
  </code></pre>
  
  <p>And the following url is used to invoke the webservice from the browser:</p>
  
  <p><strong>/contacts/delete/contactname</strong></p>
  
  <p><strong>But HTTP Status 405 - Method Not Allowed</strong> is thrown on doing so.</p>
  
  <p>What might be the reason? How do I overcome this?</p>