Tomcat的Document base ……does not exist or is not a readable directory错误
生活随笔
收集整理的這篇文章主要介紹了
Tomcat的Document base ……does not exist or is not a readable directory错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
不小心移動了一下project目錄,導致啟動tomcat的時候會報Document base ……does not exist or is not a readable directory
大概搜索了一下,得出了些結論
1. 如果報錯的目錄中包含? "..metadata\.plugins\org.eclipse.wst.server.core\tmp0\..."目錄
原因是 tmp0\conf\server.xml 中<Context>節點配置了很多已經移除的項目;?
刪除無用的 tmp0\conf\server.xml 中的? <Context>? 節點;?
刪除 tmp0\work\Catalina\localhost 下的所有文件夾;?
2.如果找不到上述目錄,或者報錯的目錄中含有tomcat目錄,如下圖
則是在Tomcat未部署項目的情況下,Configure the Web Modules on this server中已經存在Lo'ttery項目 只需要將該項目移除即可,即下圖中WebModules中的殘留項目. 移除之后別忘了保存,關閉窗口的時候會提示保存.總結
以上是生活随笔為你收集整理的Tomcat的Document base ……does not exist or is not a readable directory错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android 第三方SDK特征的收集
- 下一篇: vpp自动化测试报错调试