Tomcat servlet-api.jar issue
I am running a web application using Tomcat and Java Servlets, JSP, etc.
I know that it depends on the Servlet-api.jar file to use Servlets. I originally placed this jar file in the directory
WEB-INF / lib /...
This worked great for me for several months during the development phase.
When we put the application in a space on the server that we are using, we started seeing more serious problems popping up in the Catalina.out file, telling us that there were dependency problems with the servlet-api.jar file.
I know tomcat has this jar file in its container and that I have to remove it from the directory
WEB-INF / lib /... I tried this and it doesn't work.
What do I need to do when I remove this jar file from local files and let it depend on the servlet-api.jar tomcats file.
EDIT: This is the exact post from my Catalina.out file that I am getting. I added an external JAR to the classpath and it worked, but I am getting this problem.
May 17, 2010 12:33:31 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile (/home/weremo/appservers/apache-tomcat-6.0.26/webapps/WMA-Test/WEB-
INF / lib /servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax / servlet / Servlet.class
a source to share
Servlet-api.jar is provided by the container framework by default. Therefore, you should not put it in your WEB-INF / LIB folder when you deploy your application. However, this is required to compile your Servlets. If you are using Eclipse as your IDE, place it on your classpath using the Add External JAR Files option.
a source to share