Fixed problem in tomcat with restart