I've got a Servlet that implements the doDelete method.
When I run the application on my tomcat (8.0.0 RC1) I get a 403 response. I checked the documentation regarding this (http://tomcat.apache.org/tomcat-8.0-doc/default-servlet.html) but no change.
My Servlet:
@WebServlet(urlPatterns = "/api/binding/*",
initParams = {
@WebInitParam(name="readonly", value="false")
})
public class BindingServlet extends BasicServlet {
private static final Logger LOGGER = Logger.getLogger(BindingServlet.class);
@Override
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException {
String request = this.getRawRequest(req);
// some code
}
}
I followd the servlet implemenation through annotations from this page: http://blog.caucho.com/2009/10/06/servlet-30-tutorial-weblistener-webservlet-webfilter-and-webinitparam/