严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\Tomcat 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:5002)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5182)
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)
出错原因是:
我以前在config/server.xml里context上配置了一个虚拟路径。最后感觉没用,就把那个文件夹删除了,所以启动的时候找不到路径而出错了。大家可以试着去配置文件里找出错原因
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28793236/viewspace-768746/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28793236/viewspace-768746/