奇异的 Spring WebApplicationContext 自动关闭
昨天部署一个 web 应用,出现一个奇异问题. 启动Tomcat 发现 web 应用也正常启动了,不过紧跟着就 close 了,真是郁闷.其Tomcat 日志如下(只列出一部分):
信息: Root WebApplicationContext: initialization completed in 9703 ms
信息: Closing Spring root WebApplicationContext
信息: Closing Hibernate SessionFactory
信息: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException