Question

I've got a WAR that i need to deploy with TomCat, but i'm not sure which version of the servlet spec the WAR file uses.

According to apache's site (http://tomcat.apache.org/whichversion.html) i need to download a different version according to which spec the WAR file uses.

Is there any way to tell by unzipping the WAR file and looking at some config file?

Was it helpful?

Solution

Try looking at the DTD/Schema of the web.xml file in the WEB-INF dir.
Note, servlet containers are backward compatible, so 2.3 servlet application should run just fine under a 2.4 servlet engine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top