2011-03-22 84 views
4

我得到这个错误网络实例已停止

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) 

可能有人请指导我,什么错误,我感到在这里提交。我不确定是否需要粘贴源代码。

+0

我有开始填充日志,服务器循环和不服务请求同样的问题。当我尝试重新载入某些内容时,会发生这种情况 - xhtml文件,类文件... – mist 2011-07-28 15:43:31

回答

6

好像我创建的一些东西,已经created..i删除实例的实例,现在它工作正常

5

这是因为你将应用程序部署到服务器的新实例,但一些线程或连接先前的实例尝试执行一些业务逻辑。这就是为什么,JVM的主要部分称为ClassLoader的通知您“非法访问:该Web应用程序实例已经已经停止”,并抛出适当的异常......您可以关闭对生产环境和之后最好应用服务器的自动部署功能手动部署应用程序重启服务器。或者你可以在Class级别控制Servlet生命周期:)))在“预部署”期间关闭所有连接或停止某些线程。或者使用复杂的方式控制带有ManagedExecutorService的线程。祝你好运!!!

1

你使用的是NetBeans?我有一个类似的错误,除了它是无法加载oracle.sql.lnxlib。和许多海报人员指出的一样,这个错误通常与Tomcat缓存应用程序的多个实例有关。的同事,能够通过取消部署在NetBeans中应用的旧实例来解决这个问题对我来说。要做到这一点,去到服务选项卡>服务器的Apache Tomcat或TomEE和自开业以来的NetBeans一次运行该应用程序后,然后双击,一个Web应用程序文件夹应该出现。如果你双击它,你会看到你的应用程序的实例出现。您应该可以右击它们,然后单击取消部署(您可能需要右击它们,打先停止)。最后,你应该停下来然后在构建和运行你的应用程序之前启动tomcat。

希望这会有所帮助。

See attached screenshot for clarity