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

关于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这样的文件, 把它们都删除了就可以了. 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值