Servlet-api-2.5.jar – Jar Not Loaded – Tomcat Error

Asked By 0 points N/A Posted on -
qa-featured

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

SHARE
Answered By 10 points N/A #318586

Servlet-api-2.5.jar – Jar Not Loaded – Tomcat Error

qa-featured

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.

Related Questions