[Geoserver-users] GeoServer 2.2.5 tomcat unable to verify servlet-api-2.5.jar

Testing GeoServer 2.2.5 on a windows box (running Tomcat 7.0.37 and noticing an unexpected warning:

INFO: Deploying web application archive C:\java\tomcat\webapps\geoserver.war

04/03/2013 11:58:12 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\java\tomcat\webapps\geoserver\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN File option not set for appender [geoserverlogfile].

Now it could be this is just normal, Tomcat probably provides an implementation of servlet-api already.

Anyone care to confirm?

Jody

On Mon, Mar 4, 2013 at 2:06 AM, Jody Garnett <jody.garnett@anonymised.com> wrote:

Testing GeoServer 2.2.5 on a windows box (running Tomcat 7.0.37 and noticing an unexpected warning:

INFO: Deploying web application archive C:\java\tomcat\webapps\geoserver.war

04/03/2013 11:58:12 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\java\tomcat\webapps\geoserver\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN File option not set for appender [geoserverlogfile].

Now it could be this is just normal, Tomcat probably provides an implementation of servlet-api already.

We should just modify the poms not to include the servlet-api. jar in the .war file, that jar
is supposed to be provided by the container anyways.
I believe marking it as “provided” should do the trick.

Do you have time to try and verify that works?

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it