Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
779 views
in Technique[技术] by (71.8m points)

tomcat - java.lang.IllegalArgumentException: Document base [...]org.eclipse.wst.server.core mp0wtpwebapps[...] does not exist or is not a readable directory

I am getting this exception in eclipse-jee-Kepler-SR1-win32

java.lang.IllegalArgumentException: Document base C:Userspraveenworkspace.metadata.pluginsorg.eclipse.wst.server.coremp0wtpwebappsadvanced 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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;

  1. Check your Tomcat version, if you are using Tomcat 7 series you may need jre 7 series and below.

  2. Just download the jre kit from here; http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html

  3. Change the server preferences to Tomcat 7. ALWAYS CHECK!

  4. Restart Eclipse. (I recommend you to use Luna. Its much more stable.)

  5. Good luck !


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...