Change the servlet to listener.