fixed run against failure issue for java tomcat