Made Changes to make it deployable on Apache Tomcat