Created a java web project with a listeners package that contains a session listener and a context listener.