Fixed webapp to run in Tomcat.