Fixed web.xml file as the servlet and servlet-mapping entries were the wrong way around.