Add ServletContextListener and HttpSessionListener.