2012-03-07 65 views
6

很久以前,我已經部署了一個DWR Web應用程序示例,這是我從網上獲得的。 我遇到了問題,我刪除了戰爭文件從web應用,溫度和從本地主機文件夾,但我仍啓動服務器時SEVERE:在Tomcat服務器控制檯啓動靜態資源時出錯

INFO: Initialization processed in 795 ms 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.33 
Mar 7, 2012 5:31:25 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor DWR.xml 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext resourcesStart 
SEVERE: Error starting static Resources 
java.lang.IllegalArgumentException: Document base C:\Softwares\apache-tomcat-6.0.33\webapps\DWR does not exist or is not a readable directory 
     at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142) 
     at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320) 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489) 
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) 
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) 
     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) 
     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) 
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) 
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) 
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) 
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) 
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 
     at org.apache.catalina.core.StandardService.start(StandardService.java:525) 
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) 
     at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error in resourceStart() 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error getConfigured 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Context [/DWR] startup failed due to previous errors 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext stop 
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/DWR] has not been started 
Mar 7, 2012 5:31:25 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor DWRExample.xml 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext resourcesStart 
SEVERE: Error starting static Resources 
java.lang.IllegalArgumentException: Document base C:\Softwares\apache-tomcat-6.0.33\webapps\DWRExample does not exist or is not a readable directory 
     at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142) 
     at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320) 
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489) 
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) 
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) 
     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) 
     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) 
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) 
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) 
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) 
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) 
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 
     at org.apache.catalina.core.StandardService.start(StandardService.java:525) 
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) 
     at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error in resourceStart() 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error getConfigured 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext start 
SEVERE: Context [/DWRExample] startup failed due to previous errors 
Mar 7, 2012 5:31:25 PM org.apache.catalina.core.StandardContext stop 
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/DWRExample] has not been started 
Mar 7, 2012 5:31:25 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor host-manager.xml 

回答

0

聽起來像它的緩存某處獲得tomcat下控制檯這些errrors。隨着臨時,刪除整個工作文件夾(刪除它們之前進行備份)。

17

我刪除了一個web應用程序,工作目錄和臨時目錄後,遇到了類似的錯誤。

SEVERE項目記錄之前的第一個INFO聲明指示存在作爲配置項目保留的已刪除Web應用程序的剩餘部分。

我能夠找到一個嵌入在conf(conf/Catalina/localhost)內的某個地方的xml文件,該文件有一個與被刪除的web應用程序相關的xml文件,當我刪除它時,錯誤消失了。

+0

謝謝爲了協助,asawi。我知道要查看conf目錄,但我忘記了我需要查看Catalina/localhost子目錄。太糟糕了錯誤信息沒有更多的信息和歇斯底里:) – 2014-04-23 20:48:39

6

幻影項目的上下文緩存在工作區插件目錄中的server.xml中。這個過程的工作來擺脫嚴重的消息

  1. 光盤/path/to/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf
  2. 編輯server.xml文件
  3. 指令內部取出<Context>指令,其中docBase屬性,符合您的幻象項目
  4. 重新啓動服務器日食
+0

你是對的。在標記中/conf/server.xml中有一個以前的eclipse應用程序的垃圾條目。 解決:-) – 2016-10-22 18:03:36

0
  1. 右鍵點擊Ø n個項目
  2. 運行方式,產生資源
  3. 項目清潔
  4. 運行方式,行家乾淨或者Eclipse:清潔
  5. 運行方式,編譯
  6. 運行方式,在服務器上運行
相關問題