java.lang.IllegalArgumentException:Document base ……does not exist or is not a readable directory错误的解决方案

关于Tomcat的 Document base ……does not exist or is not a readable directory错误

java.lang.IllegalArgumentException: Document base E:\program\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\Echarts does not exist or is not a readable directory

原因是 tmp0\conf\server.xml 中<Context>节点配置了很多已经移除的项目;

解决方案:

删除无用的 tmp0\conf\server.xml 中的  <Context>节点;
删除 tmp0\work\Catalina\localhost 下的所有文件夹,重新部署;

记录一下,便于再次遇到这种问题时可以参考。

posted @ 2015-07-21 14:21  人生设计师  阅读(1560)  评论(0编辑  收藏  举报