Tried using annotations. Changed the conf of web-app in web.xml for a start.