Error starting static Resources java.lang.IllegalArgumentException

这个错误是在Tomcat上部署完web项目,启动Tomcat的Error starting static Resources java.lang.IllegalArgumentException的时候报出来的,网上也找了很多,也试了都不合适,还是先仔细检查错误提示:

Error starting static Resources java.lang.IllegalArgumentException

 抓关键错误信息:

 Error starting static Resources
java.lang.IllegalArgumentException: Document base F:\eclipse\apache-tomcat-7.0.23\webapps\demo does not exist or is not a readable directory,

错误提示说,目录“F:\eclipse\apache-tomcat-7.0.23\webapps\demo”不存在或者不可读,我看了一下webapps下,确实没这个“demo”项目

Error starting static Resources java.lang.IllegalArgumentException

通过这个展示,可以看到根本没有报错中的项目,然后就想到只能看配置文件中是否有配启动时默认去启这个名字的项目,坚决找Tomcat配置文件 

Error starting static Resources java.lang.IllegalArgumentException

果然里面有这个默认的项目名,坚决把它注释掉,然后,重新启动Error starting static Resources java.lang.IllegalArgumentException就会发现好了,发布正常了。

Error starting static Resources java.lang.IllegalArgumentException 

附件:

    当然,如果发布失败,可以把work低下清感觉,在启动

Error starting static Resources java.lang.IllegalArgumentException