The exact list of classes that are required to support Java EE 5 environment annotations
is defined in Table EE.5-1 of the Java EE 5 specification.
http://www.jcp.org/en/jsr/detail?id=244
Servlet filters are required to
support such annotations.One thing you should check is the version number of the
schema in your web.xml.It must reference the Java EE 5 web-app .xsd version. Otherwise,
annotations are not processed in the web app.Here's an example :
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http
://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/x
ml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">