[英]Tomcat7 trying to run a war that doesn't exist and then failing
java.lang.IllegalArgumentException: Document base /var/lib/tomcat7/webapps/Monocle does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:137)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5197)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5386)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
out tomcat7無法啟動。 為了確定問題是否與tomcat本身或我的代碼有關,我從webapps
文件夾(除ROOT文件夾之外)刪除了所有war文件。 當我開始時,它未能引發以上錯誤。 Monocle
是我刪除的一場戰爭。 我不明白為什么它仍然試圖找到Monocle。 我已經從work
文件夾中刪除了Catalina
文件夾。 有人能幫我嗎? 我是否需要其他任何位置的清除緩存?
您可以驗證TOMCAT_HOME / conf / server.xml文件
在標記中,appBase屬性的默認值為wepapps,可能您更改了appBase =“ / var / lib / tomcat7 / webapps / Monocle”。
希望這可以幫助!!!
ps:如果沒有,請添加更多信息。 例如:TOMCAT_HOME / conf / server.xml,TOMCAT_HOME / conf / context.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.