How to deploy your listener
Listeners are configured in the deployment descriptor(web.xml) using the elements & as shown below.
<web-app> <listener> <listener-class>com.tf.MyListener</listener-class> </listener> </web-app>