users@servlet-spec.java.net

[servlet-spec users] Re: Should Servlet 3.0 compliant Web Container process @WebServlet annotation if app's web.xml is version 2.5?

From: <rajiv.mordani_at_oracle.com>
Date: Thu, 24 May 2012 05:36:47 +0000 (GMT)

The version of the deployment descriptor does not determine what
features from the container can and cannot be used. The deployment
descriptor version refers only to the version of the XML schema or DTD
against which the descriptor is to be validated. It does not provide
any information as to what version of the Java EE platform the
application
is written to.

If you are using a Java EE 6 compatible implementation and use the
Servlet 3.0 feature / annotation, it should work independent of the
version of the descriptor. Hope this helps.

Thanks

- Rajiv