天天看點

解決java.lang.IllegalArgumentException: Document base D:\jakarta-tomcat-5.0.28\webapps\BIDemo does not...

java.lang.IllegalArgumentException: Document base D:\jakarta-tomcat-5.0.28\webapps\BIDemo does not exist or is not a readable directory

上述錯誤出現後,在網上找了很多 的方法。如:

1.該項目的War檔案從***\apache-tomcat-6.0.16\webapps 移出;

2.該項目的某些配置從 ***apache-tomcat-6.0.16\work\Catalina\localhost 移除;

3.該項目的配置檔案,目錄: ***\apache-tomcat-6.0.16\conf\Catalina\localhost移除。

前2步,我想很多人都知道,做了1,2,是不夠的,必須把第三步也做了才行

但是上述方法經過試驗沒有成功。最終解決的辦法是:apache-tomcat-6.0.16\conf\server.xml.在最低部發現了經常提示錯誤的那個項目的名字。找來一個配置檔案,把原來的覆寫掉就OK了。