Eclipse里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(图文详解)》

 

    严重: 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/下

比如,我的这里是

《Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)》

 

 

  步骤二:进入tmp0/conf/目录,删除无用的 tmp0\conf\server.xml 中的  <Context>  节点; 

《Eclipse里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(图文详解)》

 

<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>

《Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)》

 

 

 

 

 

  步骤三:删除 tmp0\work\Catalina\localhost 下的所有文件夹;

我这里是,D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost

 《Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)》

 

 

 

 

 

  步骤四:删除tomcat

《Eclipse里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

《Eclipse里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(图文详解)》

 

《Eclipse里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(图文详解)》

 

 

 

 

 

 

 

 

 

 

 

 

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑
     

同时,大家可以关注我的个人博客

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

 

  人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。
  目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

 

      对应本平台的讨论和答疑QQ群:大数据和人工智能躺过的坑(总群)(161156071)《Eclipse里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(图文详解)》《Eclipse里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(图文详解)》《Eclipse里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(图文详解)》

 

 

 

 

 

《Eclipse里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(图文详解)》

 

    原文作者:大数据和AI躺过的坑
    原文地址: https://www.cnblogs.com/zlslch/p/6428114.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞