i am getting the following error. I searched many forums which didnt help me to resolve this.So, can anyone please look into it and help me in resolving this?
I am not u
Just check web.xml, any changes in servlet mapping will result in that kind of problem. try running another application which is perfect, while doing that make sure tomcat in server console is empty(no drop down if their delete it) then run
Adding the commons-logging jar into the "lib" folder,worked for me.
Here's the download link: https://commons.apache.org/proper/commons-logging/download_logging.cgi
Hope this helps
Tried all sorts, but what worked from me was removing all references to javax from the the POM; deleting javax jars from Maven repository and then re-adding back to the POM. I think one of the jars was corrupt.
Just check your web.xml for any typo.
Or verify whether your servlet-name node in web.xml and @WebServlet("/abc") in servlet are same.
I fix this issue by above change,
verify web.xml.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>Admin</display-name>
<servlet>
<servlet-name>ServletName</servlet-name>
<servlet-class>ServletName</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AdminServletNameServlet</servlet-name>
<url-pattern>/ServletUrl</url-pattern>
</servlet-mapping>
</web-app>
web.xml is the culprit. I had 2 controllers mapped to the same URL pattern. And this was creating issue. Server started as soon as I changed the URL pattern mapping of one of the controllers.