Order matters in web.xml, this order is required:
context-param
listener
servlet servlet-mapping
session-config
welcome-file-list
taglib
security-constraint
login-config
And in your example servlet is coming before listener so this won't be compile
[ July 06, 2005: Message edited by: Pawan Ramchandani ]