java.lang.IllegalArgumentException: Document base D:\program\tomcat_7 when Tomcat starts

May 04, 2016 7:47:07 pm org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\program\tomcat_7.0.42\wtpwebapps\httpinvoker_server does not exist or is not a readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
May 04, 2016 7:47:07 pm org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 04, 2016 7:47:07 pm org.apache.catalina.core.StandardContext startInternal

 

I encountered this problem today, obviously that project no longer exists under webapps, why is it still reporting an error.

I tried it according to the method on the Internet, but the result is not working, including: deleting everything under work/catalina/localhost, checking the useless connection of the configuration file, it is not working.

Finally, I found: tomcat_7.0.42\conf\server.xml Find the httpinvoker_server configuration and comment it out, solve the problem.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326618959&siteId=291194637