tomcat报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already.

tomcat报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already.

关于一个HTTP头验证出错的问题:

org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/javax.xml.stream.XMLInputFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/javax.xml.stream.XMLInputFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

意思是:

org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading非法访问:此web应用程序实例已停止。无法加载[META-INF/services/javax.xml.stream.XMLInputFactory]。为了调试以及终止导致非法访问的线程,将抛出以下堆栈跟踪。

java.lang.IllegalStateException:非法访问:此web应用程序实例已停止。无法加载[META-INF/services/javax.xml.stream.XMLInputFactory]。为了调试以及终止导致非法访问的线程,将抛出以下堆栈跟踪。

此处产生问题的原因是:一个tomcat启动了两个进程。

为什么会产生两个进程呢? 在网上找了一大堆资料后,大致说法如下:

1、sh shutdown.sh
不能完全杀死tomcat或者是不能立马杀死tomcat
2、tomcat的con/server.xml中的context属性reloadable默认为true导致。

由于windows环境下,Tomcat被占用是会自动弹窗报错的,此时若关掉窗口在重启tomcat是可以再运行项目的,但由此就会引发这个一个tomcat开两个进程的问题,进而导致URL出错等问题。

解决方法是:关掉占用端口的进程即可。

原文地址:https://www.cnblogs.com/lizm166/p/12600359.html

时间: 2024-12-31 06:39:12

tomcat报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already.的相关文章

Tomcat多应用启动报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [].

Loaded org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller$RunnableRemove from file:/mnt/software/apache-tomcat-9.0.0.M22/lib/tomcat-coyote.jar] [Loaded org.apache.catalina.core.AccessLogAdapter from file:/mnt/software/apache-tomcat-9.0.0.M22/

org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access

最近阿里云上的tomcat日志时不时的报错,虽然报错但是不影响正常业务.但是既然报错了肯定需要知道原因的.报错详情如下: 13-Oct-2015 08:26:56.061 INFO [service%0043ache.data] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been st

【Tomcat】【3】报错 Illegal access: this web application instance has been stopped already. Could not load [org.apache.commons.pool.impl.CursorableLinkedList$Cursor]

用Tomcat运行项目报错: Illegal access: this web application instance has been stopped already. Could not load [org.apache.commons.pool.impl.CursorableLinkedList$Cursor]. The following stack trace is thrown for debugging purposes as well as to attempt to term

项目跑起来之后,一会儿后台就会报错Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]. The following stack trace

一月 24, 2016 6:42:54 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading 信息: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyRes

解决 Tomcat reload WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but fail

转自:http://www.cnblogs.com/interdrp/p/5632529.html 我的错误如下: 06-Sep-2016 18:57:10.595 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [] registered the JDBC driver [com.mysql.jdbc.

【SpringMVC】Marking servlet dispatcherServlet as unavailable org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception

Marking servlet dispatcherServlet as unavailable org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception Java.lang.ClassNotFoundException: org.springframework.web.servlet.D

idea导入eclipse项目,tomcat启动报错org.apache.catalina.deploy.WebXml addFilter

问题: idea导入eclipse项目,tomcat启动时,报错:org.apache.catalina.deploy.WebXml addFilter 解决办法: 找到tomcat下conf文件夹下的content.xml,在<Context></Context>中添加 <Loader delegate="true"/> 原因分析: <Loader delegate="true"/>True,表示tomcat将遵循J

Tomcat启动报错:org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalin

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 20:36:46.361 [RMI TCP Connection(3)-127.0.0.1] ERROR o.s.boot.SpringApplication - Application startup failed org.springframework

报错org.apache.catalina.LifecycleException caused by java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader

今天将tomcat6更换成了tomcat7,报错的内容 严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webandr