java.lang.IllegalArgumentException:Document base [...] org.eclipse.wst.server.core\tmp0\wtpwebapps [...]不存在或不是可读目录 [英] java.lang.IllegalArgumentException: Document base [...]org.eclipse.wst.server.core\tmp0\wtpwebapps[...] does not exist or is not a readable directory
问题描述
我在eclipse-jee-Kepler-SR1-win32中得到这个例外
java.lang.IllegalArgumentException:文档库C:\Users\praveen\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\advanced java不存在或不可读目录$在org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5077)上的
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5257)
在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
在org.apache。 catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1559)
在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1549)
在java.util。 concurrent.FutureTask.run(Unknown Source)
在java.util.concurrent.ThreadPoolExecutor.runW orker(未知来源)
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)
在java.lang.Thread.run(未知来源)
我如何解决?
这些问题可能来自JDK系列。大多数pc在win32位和一些win64位都遇到了同样的问题。当我尝试将jdk(JRE)系列从8降级到7时,问题解决了。我想你可能需要这些步骤;
- p>检查您的Tomcat版本,如果您使用的是Tomcat 7系列,您可能需要使用jre 7系列及以下版本。
-
只需从这里下载jre工具包;
http://www.oracle.com /technetwork/java/javase/downloads/jre7-downloads-1880261.html -
将服务器首选项更改为Tomcat 7.总是检查! / p>
-
重新启动Eclipse。 (我建议你使用Luna,它更稳定)
-
祝你好运
I am getting this exception in eclipse-jee-Kepler-SR1-win32
java.lang.IllegalArgumentException: Document base C:\Users\praveen\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\advanced java 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:5077)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5257)
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(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)
How can I solve it?
The issues might come from the JDK series. I experienced the same issues in most pc with win32 bit and some win64 bit. The issues solved when I tried to downgrade the jdk (JRE) series from 8 to 7. I think you may need these steps;
Check your Tomcat version, if you are using Tomcat 7 series you may need jre 7 series and below.
Just download the jre kit from here; http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
Change the server preferences to Tomcat 7. ALWAYS CHECK!
Restart Eclipse. (I recommend you to use Luna. Its much more stable.)
Good luck !
这篇关于java.lang.IllegalArgumentException:Document base [...] org.eclipse.wst.server.core\tmp0\wtpwebapps [...]不存在或不是可读目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!