Solution for tomcat 6