Hi, we are using Java Sun System Application Server 7 and I need to write a listener class in my web application. I wrote a listener class by implementing ServletContextListener interface. Now I wrote a lister tag in web.xml. But while deployin pareser is saying listener tag is not allowed. Then I obeserved the DTD web-app_2_2.dtd , in this listener tag is not specified. Now my question is can't we use listener API in java Sun System Application Server 7?