2011-03-22 74 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