HTTP Status 405 - Method Not Allowed
<p>I am trying to create named query in net beans for restful web service project. Now I am trying to delete a table row  data with the reference of a field name "ordnumber",this is not a primary key,when  I am trying the url <a href="http://localhost:8080/TileApp/webresources/tile.ordermain/order/" rel="nofollow">http://localhost:8080/TileApp/webresources/tile.ordermain/order/</a>'52' </p>

<p>I am getting the error as </p>

<blockquote>
  <p>HTTP Status 405 - Method Not Allowed</p>
</blockquote>

<p>Would you please help me for a solution.</p>

<pre><code>   @DELETE
    @Path("order/{ordnumber}")
    public void deleteAction(String orderNO) {
        em.createNamedQuery("Ordermain.deleteByorderNo", Ordermain.class).setParameter("ordnumber", orderNO).executeUpdate();
    }
</code></pre>

<p>thank you </p>