java.lang.IllegalArgumentException: Document base […]org.eclipse.wst.server.core\tmp0\wtpwebapps[…] does not exist or is not a readable directory

后端 未结 2 615
暗喜
暗喜 2020-12-12 05:23

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

java.lang.IllegalArgumentException: Document base C:\\Users\\praveen\\workspace\\.metadata\\.plug         


        
相关标签:
2条回答
  • 2020-12-12 06:13

    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 !

    0 讨论(0)
  • 2020-12-12 06:16

    Build the project again, regenerate the war file and add it to the web module.Sometimes the generated war file will be corrupted or will not reflect the new changes.

    0 讨论(0)
提交回复
热议问题