This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi evereyBody, I am trying to run struts application in tomcat5.0.19.I am getting the fallowing exception while running tomcat.Please give me solution regd this. i have tested with the tomcat servlet-api.jar(5.0).
INFO: Installing web application at context path /exercise04 from URL file:C:\jakarta-tomcat-5.0.19\webapps\Myapp Aug 2, 2005 7:08:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\jakarta-tomcat-5.0.19\webapps\Myapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Aug 2, 2005 7:08:09 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Aug 2, 2005 7:08:09 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Aug 2, 2005 7:08:09 PM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors Thnx...
You shouldn't have servlet-api.jar in your web-inf/lib directory.
Also note that Tomcat does not use the classpath environment variable. The classpath (as far as Tomcat is concerned is) Class folder: web-inf/classes Jar files in: web-inf/lib, [TOMCAT]/shared/lib, [TOMCAT]/common/lib
If a jar file appears more than once in these various directories it can create a problem.