简体   繁体   English

java.lang.IllegalStateException: 非法访问:此 Web 应用程序实例已停止

[英]java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already

I study web application with Spring.我用 Spring 学习 Web 应用程序。 My development environment is我的开发环境是

  • SpringToolSuite (ver 3.9.6), SpringToolSuite(版本 3.9.6),
  • Tomcat (8.5)雄猫 (8.5)
  • JDK (1.8) JDK (1.8)

I write source like in the textbook and run that code, but error message has been shown:我像教科书一样编写源代码并运行该代码,但已显示错误消息:

错误描述

The full message is this.完整的信息是这样的。

**java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.**

The source works properly, but after a few seconds, the following error message comes out.源工作正常,但几秒钟后,出现以下错误消息。

If you know solution, I hope you let me know.如果你知道解决方案,我希望你让我知道。

This is because of application servers like tomcat caching your old application.这是因为像 tomcat 这样的应用服务器缓存了你的旧应用。 Try to restart it.尝试重新启动它。

Right button in your Tomcat in Servers, then 'Clean', and try to running again.在服务器中的 Tomcat 中右键单击,然后单击“清洁”,然后再次尝试运行。 As other users replied, the tomcat is caching the old application正如其他用户所回答的,tomcat 正在缓存旧的应用程序

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 非法访问:此Web应用程序实例已被停止 - Illegal access: this web application instance has been stopped already 非法访问:此 Web 应用程序实例已被停止 - Illegal access: this web application instance has been stopped already Spring Boot Web应用程序:引发java.lang.IllegalStateException:此响应已调用getOutputStream() - Spring Boot Web Application: throwing java.lang.IllegalStateException: getOutputStream() has already been called for this response 信息:非法访问:此 Web 应用程序实例已停止。 无法加载 java.net.InetAddress - INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.InetAddress 非法访问 - 此 Web 应用程序实例已停止。 - Illegal access- this web application instance has been stopped already. Eclipse和Tomcat 8.0.35应用程序错误:非法访问:此Web应用程序实例已被停止 - Eclipse and Tomcat 8.0.35 app ERROR: Illegal access: this web application instance has been stopped already org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 非法访问:此 Web 应用程序实例已停止 - org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already 非法访问:此 web 应用程序实例已被停止。 Tomcat 停止运行 - Illegal access: this web application instance has been stopped already. Tomcat Stop Run java.lang.IllegalStateException: 已经为此请求调用了getReader() - java.lang.IllegalStateException: getReader() has already been called for this request java.lang.IllegalStateException:已为此响应调用getWriter() - java.lang.IllegalStateException: getWriter() has already been called for this response
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM