Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory
来源:互联网 发布:淘宝批发网叫什么 编辑:程序博客网 时间:2024/06/09 13:22
问题描述:
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\newsInfoCrawler does not exist or is not a readable directory
解决办法:
需要执行下面操作:
步骤一:首先,进入,你的工作区间目录下的.metadata\.plugins\org.eclipse.wst.server.core/下
比如,我的这里是
步骤二:进入tmp0/conf/目录,删除无用的 tmp0\conf\server.xml 中的 <Context> 节点;
<Context docBase="D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" path="" reloadable="false"/>
<Context docBase="D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\newsInfoCrawler" path="/newsInfoCrawler" reloadable="true" source="org.eclipse.jst.jee.server:newsInfoCrawler"/></Host>
删除,留下,得到
<Context docBase="D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" path="" reloadable="false"/></Host>
步骤三:删除 tmp0\work\Catalina\localhost 下的所有文件夹;
我这里是,D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost
步骤四:删除tomcat
步骤五:重新配置tomcat
本人就是通过此种方式完成的,可以恢复!当初工具同时也报错:Server Tomcat v7.0 Server at localhost failed to start.因为控制台报错了,所以Tomcat肯定是运行不了的,也是这个方法解决的。希望对大家有所帮助!
- Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory
- Tomcat报错:Document base …does not exist or is not a readable directory
- Tomcat的 Document base ……does not exist or is not a readable directory错误
- Tomcat的 Document base ……does not exist or is not a readable directory错误
- Tomcat启动的时候 报Document base …does not exist or is not a readable directory错误
- Eclipse tomcat异常 Document base does not exist or is not a readable directory
- 关于Tomcat的 Document base ……does not exist or is not a readable directory错误
- 关于Tomcat的 Document base ……does not exist or is not a readable directory错误
- Document base D:\apache-tomcat\webapps\XXXX does not exist or is not a readable directory
- 关于启动Tomcat6.x时的 Document base ……does not exist or is not a readable directory 错误
- Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory
- Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory
- Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base XXXXX does not exist or is not a readable directory
- Document base XXXXX does not exist or is not a readable directory.
- Document base does not exist or is not a readable directory
- Document base does not exist or is not a readable directory的解决方案
- Document base xxx does not exist or is not a readable directory
- RecyclerView更全解析之
- SMP Kapsel app从 SDK 9升级到SP12
- 游戏分包下载机制原理
- 存储过程 --- 3 --- 常见函数学习
- 网页计算器
- Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory
- 二叉树
- x264库的编译和移植
- 512
- ueidtor conf介绍
- RecyclerView更全解析之
- 题目1476:平方因子
- 九九算法
- Python中的容器