I'm running Eclipse Indigo 3.7, Tomcat7, Spring MVC framework 2.5.6.
In one of my application project, I have this error message:
nov. 22, 2011 9:06:30 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Infos: validateJarFile(/home/pc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SpringMVC/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
I have read that for web application project like mine, servlet-api.jar should not be included in the project build path; Is that right? Where should I put then servlet-api.jar because I've servlet in my application?
Also I would like to ask:
I'm reading often to put jar files in WEB-INF/lib folder, sometimes I'm reading to include them in the project build path as external Jar, sometimes I'm reading to do both at the sametime.
For example, I've read that: -servlet-api.jar is already in Tomcat7/lib directory but need also to be included in the project path; -MySQL JDBC driver for java has to be included in the project path, and copied also in the WEB-INF/lib and Tomcat7/lib directories.
Can anyone tells me the thruth and help me to understand really how to manage «Jar librairies» in a project in eclipse?
Thank you very much.