fix deploy issues. now works in tomcat