java.lang.IllegalArgumentException:文档库不存在或不是可读目录

时间:2014-08-04 20:12:07

标签: eclipse tomcat illegalargumentexception

每当我尝试在apache tomcat服务器上运行一个项目时,我会看到一个带有消息的对话框:

'Server Tomcat v7.0 Server at localhost failed to start.'

所以我按照这个帖子的建议: "Server Tomcat v7.0 Server at localhost failed to start" without stack trace while it works in terminal

删除\.metadata\.plugins\org.eclipse.wst.server.core

中的tmp文件夹

在我的案例中标记为tmp0。

但我仍然得到相同的错误对话框,错误日志似乎表明删除tmp文件夹使事情变得更糟。我该如何解决这个问题?

java.lang.IllegalArgumentException: Document base /Users/smith/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ClientPortal does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5089)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
    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.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

0 个答案:

没有答案