Remove @WebListener annotation and add listener configuration to
web.xml.