fix embedded tomcat launch twice error.