fix tomcat 7 issue