Servlet-api-2.5.jar – Jar Not Loaded – Tomcat Error
While deploying my program in tomcat I had faced an error which says servlet-api-2.5.jar. This is not allowing me to deploy the program further. What should I do fix this issue
While deploying my program in tomcat I had faced an error which says servlet-api-2.5.jar. This is not allowing me to deploy the program further. What should I do fix this issue
This error occurs because Tomcat ships with the default servlet-api.jar file. Now your application also provides the servlet-api.jar file. Tomcat conflicts with selecting the servlet-api.jar file. The solution to this problem is very simple. In your Maven dependencies, you specified the servlet-api JAR file. When Maven groups the war file, it contains all dependent JAR files. You configure your Maven dependencies to exclude this jar file when you create the war file.