简体   繁体   English

Web 实例已经停止

[英]web instance already stopped

i get this error我收到这个错误

Mar 22, 2011 12:36:01 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load META-INF/services/javax.xml.parsers.DocumentBuilderFactory.  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.
Mar 22, 2011 12:36:01 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.  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
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1562)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
    at javax.xml.parsers.FactoryFinder.getProviderClass(Unknown Source)
    at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
    at javax.xml.parsers.FactoryFinder.find(Unknown Source)
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
    at com.xmlparser.XmlParser.parseXmlFile(XmlParser.java:33)
    at com.xmlparser.XmlParser.<init>(XmlParser.java:25)
    at com.jobs.SendRoutineMessagesJob.execute(SendRoutineMessagesJob.java:29)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

could some one please guide me as to what mistake i am committing here.有人可以指导我我在这里犯了什么错误吗? i am not sure if i would need to paste the source code as well.我不确定我是否也需要粘贴源代码。

This because of you are deploying new instance of your application to server but the some thread or connection of previous instance attempts doing some business logic you have written.这是因为您正在将应用程序的新实例部署到服务器,但先前实例的某些线程或连接尝试执行您编写的某些业务逻辑。 That's why, the main part of JVM called ClassLoader informs you about "Illegal access: this web application instance has been stopped already" and throws appropriate exception... You can switch off auto deploy feature of Application Server which preferable on Production Environment and after deploying application restart server manually.这就是为什么 JVM 的主要部分称为 ClassLoader 会通知您“非法访问:此 Web 应用程序实例已被停止”并抛出适当的异常......您可以关闭应用程序服务器的自动部署功能,这在生产环境和之后更可取手动部署应用程序重启服务器。 Or you can in Class level control Servlet Life Cycle:))) during "pre deploy" close all connection or stop some threads.或者您可以在类级别控制 Servlet 生命周期 :))) 在“预部署”期间关闭所有连接或停止某些线程。 Or use sophisticated way controlling Threads with ManagedExecutorService.或者使用复杂的方式通过 ManagedExecutorService 控制线程。 Good luck!!!祝你好运!!!

seems like i was creating instance of something which was already created..i removed the instance and now it works fine好像我正在创建已经创建的东西的实例..我删除了实例,现在它工作正常

Are you using Netbeans?你在使用 Netbeans 吗? I had a similar error except it was could not load oracle.sql.lnxlib .我有一个类似的错误,只是它无法加载oracle.sql.lnxlib Like many posters have pointed out, this error usually has to do with Tomcat caching multiple instances of the application.正如许多张贴者指出的那样,这个错误通常与 Tomcat 缓存应用程序的多个实例有关。 A coworker was able to solve the problem for me by undeploying old instances of the application within Netbeans.通过在 Netbeans 中取消部署应用程序的旧实例,一位同事能够为我解决问题。 To do so, go to the Services Tab > Servers and then double click on Apache Tomcat or TomEE and after running the application once since opening netbeans, a Web Applications Folder should appear.为此,转到服务选项卡 > 服务器,然后双击Apache Tomcat 或 TomEE ,在打开 netbeans 后运行一次应用程序后,应会出现一个 Web 应用程序文件夹。 If you double click on that, you should see instances of your application appear.如果双击它,您应该会看到应用程序的实例出现。 You should be able to right click them and then click undeploy (you may have to right click them and hit stop first).您应该可以右键单击它们,然后单击取消部署(您可能必须先右键单击它们,然后点击停止)。 Finally, you should stop and then start tomcat before building and running your application.最后,您应该在构建和运行您的应用程序之前停止然后启动 tomcat。

Hope this helps.希望这可以帮助。

See attached screenshot for clarity为清楚起见,请参阅随附的屏幕截图

在此处输入图像描述

If you use gradle there is an error如果你使用gradle会报错

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.抛出以下堆栈跟踪用于调试目的以及尝试终止导致非法访问的线程。 You can change mysql-connect-java to mysql: mysql-connector-java: 8.0.13可以把mysql-connect-java改成mysql: mysql-connector-java: 8.0.13

Good luck祝你好运

I got this error on Tomcat on an Ubuntu server....finally resolved it by doing a Tomcat shutdown with "systemctl stop tomcat" and then "sudo reboot" and then once the box came back up, starting Tomcat again我在 Ubuntu 服务器上的 Tomcat 上遇到了这个错误....最终通过使用“systemctl stop tomcat”然后“sudo reboot”关闭 Tomcat 解决了这个问题,然后一旦盒子恢复正常,再次启动 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 java.lang.IllegalStateException: 非法访问:此 Web 应用程序实例已停止 - java.lang.IllegalStateException: 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 非法访问 - 此 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应用程序实例已被停止。 无法加载org.apache.log4j.spi.NOPLoggerRepository - Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.spi.NOPLoggerRepository 为什么从/ manager重新启动应用程序会导致“此Web应用程序实例停止运行”的错误。 ”警告。 为什么? - Why Does Restarting Applications From /manager Cause A Slew of “this web application instance has been stopped already. ” warnings. Why? 信息:非法访问:此 Web 应用程序实例已停止。 无法加载 java.net.InetAddress - INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.InetAddress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM