HTTP Status 405 – HTTP method GET is not supported by this URL
The HTTP status 405 is a very common error message in Java Servlet.
HTTP Status 405 - HTTP method GET is not supported by this URL type Status report message HTTP method GET is not supported by this URL description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL). Apache Tomcat/6.0.20
Solution
This is always caused by following two reasons
1) You do not have a valid doGet() method, when you type the servlet’s path in address bar directly, the web container like Tomcat will try to invoke the doGet() method.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException{ .... }
2) You made a HTTP post request from a HTML form, but you do not have a doPost() method to handle it. The doGet() can not handle the “Post” request.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{ .... }






Reason #2 sounds like a bug in the web container. If it can’t handle POST, it should say that it can’t handle POST, rather than saying it can’t handle GET. :)
For Java
i am having a problem as i am clicking on submit button..It says method POST is not supported by url..i have checked the mapping.m not able to find the solution..
I had same problem. The decision was to remove auto generated
super.doGet(req, resp); in my doGet method
In the past couple of weeks I have started getting the “HTTP Status 405 – HTTP method GET is not supported by this URL” message when I try to use some links from the MY MSN homepage. I’m not doing any programing just trying to go to a link on the page. I’m using Internet Explorer 8. Is there anything I should be changing to try and fix this?
This error is caused by the server site, nothing to do with the client. Please contact the link owner / website owner about this issue.