Fix the PermGen error in tomcat