Errors |
Solutions |
javax.servlet.annotation cannot be resolved
(or) webservlet cannot be resolved to a type (or) httpservlet cannot be resolved to a type |
Add servlet-api-3.0.jar in to the libraries |
Server Tomcat v7.0 Server at localhost failed to start
(Or) port update not being taking place” issues |
1. Open the Servers Tab from Windows>Show View>Servers menu
|
HTTP Status 500 – Error instantiating servlet class | Check the Servlet-class tag and url-pattern names. |
Port already in use. | Means already a tomcat instance is running in that port.
To kill that, goto task manager , find java.exe and kill it. Sometimes when we close eclipse abruptly, tomcat might be running at the background. |
HTTP Status 405 – HTTP method GET is not supported by this URL | Servlet might have doPost method. Check the doGet and doPost |
HTTP Status 404 – The requested resource is not available | Check whether the action name and the servlet name are same or not. also you might have get this error when you configure the servlet mapping by web.xml and @WebServlet annotion. in this case remove any one mapping. |
Java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory | download commons-logging-1.1.2.jar file from apache site (https://commons.apache.org/proper/commons-logging/download_logging.cgi) and then add the jar file in to the library. |