This question already has answers here:
java.lang.IllegalArgumentException: Document base […]org.eclipse.wst.server.core\tmp0\wtpwebapps[…] does not exist or is not a readable directory
                                
                                    (2个答案)
                                
                        
                                3年前关闭。
            
                    
我收到以下错误,我不知道它是什么,我也是servlet和tomcat服务器的新手,所以您能向我解释如何识别错误,例如下面的错误吗?任何帮助表示赞赏。

java.lang.IllegalArgumentException: Document base C: \Users\ agrosys\ workspace\.metadata\.plugins\ org.eclipse.wst.server.core\ tmp1\ wtpwebapps\ JqTree 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: 5145)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java: 5330)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java: 150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java: 1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java: 1565)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

最佳答案

Eclipse无法读取项目所在的目录,因此在尝试启动Tomcat服务器时所有资源都不可用。一些建议如下:


*)检查项目文件夹和wtpwebapps的权限。
*)检查运行tomcat和eclipse的OS用户是否能够读取


蚀项目文件夹。


*)确保tomcat插件正在读取正确的项目目录。
*)确保将您的Web项目部署到正确的目录(wtpwebapps)

09-04 03:42
查看更多