Error starting static Resources java.lang.IllegalArgumentException: Document base D:\Program Files\apache-tomcat-xxx\webapps\xxx does not exist or is not a readable directory

网上的答案大多数如下:



但并没有解决我的问题



 经过我的观察:

在tomcat的server.xml有Lottery项目描述,但实际上,该项目已被我删除,不存在于webapps中了



 

该行Context是tomcat运行时动态生成的。


进行了多次尝试,得出如下结果:

当我删除该Context时,直接运行Tomcat,运行正常,且不生成该Context;

当我删除该Context时,未部署Lottery项目,通过Eclipse的Tomcat插件启动Tomcat时,动态生成该Context;

当我删除该Context时,部署Lottery项目,通过Eclipse的Tomcat插件启动Tomcat时,报错重复部署项目的错误,并动态生成两个一样的Context;


由此推断,问题应该出在Eclipse中。


解决办法:

在Tomcat未部署项目的情况下,Configure the Web Modules on this server中已经存在Lo‘ttery项目

只需要将该项目移除即可


移除之后终于又可以正常使用了



来自为知笔记(Wiz)

时间: 2024-08-25 09:00:40

Error starting static Resources java.lang.IllegalArgumentException: Document base D:\Program Files\apache-tomcat-xxx\webapps\xxx does not exist or is not a readable directory的相关文章

Linux下启动tomcat报错RROR org.apache.catalina.core.StandardContext- Error starting static Resources java.lang.IllegalArgumentException: Document base /home/duiba/apache-tomcat/webapps/../webapps/manager do

部署项目的时候,重启tomcat,死活起不来,很郁闷,网上巴拉了半天,结合自己的情况,找到了原因: 错误日志信息: 2018-12-13 13:52:26,992 [main] INFO org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was no

严重: Error starting static Resources java.lang.IllegalArgumentException:

严重: Error starting static Resources java.lang.IllegalArgumentException: Document base E:\myworkspace\evecomoa\WebRoot does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext... 解决办法: E:\my

java.lang.IllegalArgumentException: Document base E:\Eclipse\workspace\.metadata\.plugins\org.eclips

1.错误描述 四月 13, 2015 5:56:55 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.7.0_67\bi

tomcat启动报错:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.45\webapps\activiti-explorer does not exist or is not a readable directory

java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.45\webapps\erp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142) at org.apache.catalina.core.Standard

Tomcat的错误 之 java.lang.IllegalArgumentException: Document base * does not exist

Tomcat的异常 之 java.lang.IllegalArgumentException: Document base 有些刚开始使用的Tomcat的朋友会出现的问题,明明已经将某个web应用从tomcat下的webapps下移除了,为什么还会抛这样的异常呢? java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable directoryat org.apache.nami

tomcat报错java.lang.IllegalArgumentException: Document base XXXXX does not exist or is not a readable directory

启动tomcat的时候报如下错误: java.lang.IllegalArgumentException: Document base F:\java\tools\tomcat\me-webapps\drp1.1 does not exist or is not a readable directory     at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)    at org.a

java.lang.IllegalArgumentException: Document base D:\Project\workspace\space\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps\Blog

does not exist or is not a readable directory 上网一查一堆内容.各种办法.java.lang.IllegalArgumentException:这个错误提示本事涵盖范围就特别广.他们的解决办法只是针对自己的问题.解决:找到D:\Project\workspace\space\.metadata\.plugins\org.eclipse.wst.server.core\tmp7\wtpwebapps这里面根本没有Blog这个目录.按网上的说删掉怎么删?

Tomcat:Error starting static Resources

近来主要从事JavaWeb的开发,用的是myEclipse+Tomcat,在一次启动Tomcat的过程中,出现这个问题: Error starting static Resources java.lang.IllegalArgumentException: Document base D:\apache-tomcat-7.0.42\webapps\onlinelearning does not exist or is not a readable directory    at org.apac

启动tomcat提示:Error starting static Resources

严重: Error starting static Resources java.lang.IllegalArgumentException: Document base E:\apache-tomcat-5.5.26\webapps\test does not exist or is not a readable directory ----------------------------------------------tomcat的server.xml中有<Context path=&quo