HTTP Status 405 - метод HTTP GET не поддерживается этим URL
Статус HTTP 405 - очень распространенное сообщение об ошибке в сервлете Java.
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
Решение
Это всегда вызвано следующими двумя причинами
1) У вас нет действующего метода doGet (), когда вы вводите путь сервлета напрямую в адресной строке, веб-контейнер, такой как Tomcat, попытается вызвать метод doGet ().
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException{ .... }
2) Вы сделали HTTP-запрос на отправку из HTML-формы, но у вас нет метода doPost () для его обработки. DoGet () не может обработать запрос «Post».
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{ .... }