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

摘要:
这个公众号将秉承永不过时的交流、共享和开源精神。它将从互联网和个人学习工作中收集干货知识的精华。一切都来自互联网,并反馈到互联网。当前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。只要你一直关注并留在群里,你每天都必须收获相应平台的讨论和问答QQ群:大数据和人工智能所在的坑(总群)

问题描述:

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

 

    严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:CodeMyJavaCode.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebapps ewsInfoCrawler does not exist or is not a readable directory

解决办法:

需要执行下面操作:

  步骤一:首先,进入,你的工作区间目录下的.metadata.pluginsorg.eclipse.wst.server.core/下

比如,我的这里是

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

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

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

 

 

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

 

<Context docBase="D:CodeMyJavaCode.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebappsROOT" path="" reloadable="false"/>

<Context docBase="D:CodeMyJavaCode.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebapps ewsInfoCrawler" path="/newsInfoCrawler" reloadable="true" source="org.eclipse.jst.jee.server:newsInfoCrawler"/></Host>

删除,留下,得到

<Context docBase="D:CodeMyJavaCode.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebappsROOT" path="" reloadable="false"/></Host>

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

 

  步骤三:删除 tmp0workCatalinalocalhost 下的所有文件夹;

我这里是,D:CodeMyJavaCode.metadata.pluginsorg.eclipse.wst.server.core mp0workCatalinalocalhost

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

  步骤四:删除tomcat

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

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

  步骤五:重新配置tomcat

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

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

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

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

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

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

   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(图文详解)第13张Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)第13张Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)第13张Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)第13张Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)第13张 

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

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

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

免责声明:文章转载自《Eclipse里Tomcat报错:Document base ……does not exist or is not a readable directory(图文详解)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇SQLSERVER 维护计划无法删除Shader编程学习笔记(九)—— Cg语言入门1下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

eclipse下进行c开发,使用zeromq

使用eclipse开发代码,一段zeromq的代码。 #include <string.h> #include <stdio.h> #include <unistd.h> #include "zmq.h" int main(int argc, char const *argv[]) { void* context...

ubuntu下linux内核源码阅读工具和调试方法总结

http://blog.chinaunix.net/uid-20940095-id-66148.html 一 linux内核源码阅读工具       windows下当然首选source insight, 但是linux下就没有source insight这么优秀的工具了,但是也有不少的替代品,但觉绝对部分人会选择vim+ctags+cscope的组...

如何将一个Maven项目转化成一个Eclipse项目

有时候我们需要将一个Maven项目导入到Eclipse中,直接作为一个普通的eclipse项目来导入是不行的,我们可以通过一个命令来实现:mvn eclipse:eclipse 1、 进入该Maven项目的目录,该目录下必须要有pom.xml文件,否则是无法运行以上命令的。 2、在当前目录的地址栏里输入cmd;或者按住Shift+鼠标右键,选择在此处打开命...

Java环境搭建---(基础)

首先下载eclipse开发工具,下载地址:http://www.eclipse.org/downloads/,界面如下:     选择eclipse juno(4.2)的版本进入界面 点击Downloads,进入界面 选择eclipse IDE for java EE Developers进行下载 你可以下载32位的或者64位的eclipse。 下载好了之...

NetCore MimeMapping获取MIME

public static class MimeMapping { private abstract class MimeMappingDictionaryBase { private readonly Dictionary<string, string> _mappings =...

Eclipse 常用技巧及常见问题解决

    文章目录 Eclipse默许函数折叠打开 Eclipse插件: win7屏蔽ctrl+alt+up/down快捷键/ (eclipse冲突) 去掉 eclipse 中自动生成的注释 //TODO 常见错误 Eclipse 关闭拼写检查 Eclipse 固定控制台打印信息的宽度   Eclipse默许函数折叠打开 之前更新了eclipse的...