关于启动Tomcat6.x时的 Document base ……does not exist or is not a readable directory 错误

来源:互联网 发布:高铁抢票软件 编辑:程序博客网 时间:2024/06/13 01:52

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

1、自己建立的项目没找到错误

java.lang.IllegalArgumentException: Document base D:\tomcat\apache-tomcat-6.0.43\webapps\s2sh_demo does not exist or is not a readable directory

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


删除无用的apache-tomcat-***\conf\server.xml 中的  <Context>  节点;

2、系统自带的项目没找到

严重: Error starting static Resources 


java.lang.IllegalArgumentException: Document base D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\host-manager does not exist or is not a readable directory 
~~~ 和 ~~~
严重: Error starting static Resources 
java.lang.IllegalArgumentException: Document base D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\manager does not exist or is not a readable directory 

错误; 

这是因为在apache-tomcat-***\conf\Catalina\localhost里面有两个xml文件host-manager.xml、manager.xml,删掉他们在启动Tomcat就没问题了。 
或Catalina里面其它的文件夹中也可能存在host-manager.xml,manager.xml这样的文件, 把它们都删除了就可以了. 

0 0
原创粉丝点击