updated to support deploy for tomcat 7