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:programworkspace.metadata.pluginsorg.eclipse.wst.server.core mp1wtpwebappsEcharts does not exist or is not a readable directory

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

解决方案:

删除无用的 tmp0confserver.xml 中的  <Context>节点;
删除 tmp0workCatalinalocalhost 下的所有文件夹,重新部署;

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

原文地址:https://www.cnblogs.com/longshiyVip/p/4664381.html