Thanks for your answer.
Since this isn’t encouraged I set a variable and I import it in each project.
This is the TOMCAT variable and I have to set it beacuse I have a compiling
problem if I don’t do this like this:
“The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly
referenced from required .class files”
I set the TOMCAT global variable to remove this problem and I put libreries ‘servlet.api.jar’
and ‘jsp-api.jar’ in the java build path in each projects (these jars are in commons\lib
in the tomcat-home directoy).
But during startup of tomcat I have this warning:
14-set-2007 9.07.11 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\nameApp\WEB-INF\lib\servlet-api.jar) – jar not loaded.
See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
because the server libraries are in WEB-INF\lib of each project also.
Can I remove this warning?
Thanks a lot, Enrico