Saturday, 10 September 2011

INFO: validateJarFile(C:\...\WEB-INF\lib\com.springsource.javax.servlet-2.5.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

This warning on your Tomcat stderr is becuase you've included a Servlet.class in your war.  You don't need to, it is supplied by the Tomcat container:  JAR Files You Should Never Include In Your Webapp

But if you remove it your Maven build fails?  Use <scope>provided</scope> it does exactly what you need:  Maven Dependency Scope

No comments:

Post a Comment