Eclipse Tomcat Error: Document base ... does not exist or was not a readable directory

Source: Internet
Author: User
Tags readable

Problem Description:

Severity: Error starting static Resources
Java.lang.IllegalArgumentException:Document Base D:\Code\MyJavaCode\.metadata\.plugins\ Org.eclipse.wst.server.core\tmp0\wtpwebapps\newsinfocrawler does not exist or was not a readable directory

Workaround:

You need to do the following:

Step one: First, enter, under the directory of your work interval. metadata\.plugins\org.eclipse.wst.server.core/

For example, my here is

Step Two: Enter the tmp0/conf/directory, delete the useless tmp0\conf\server.xml in the <Context> node;

<context docbase= "D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" Path= "" reloadable= "false"/>

<context docbase= "D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ Newsinfocrawler "path="/newsinfocrawler "reloadable=" true "source=" Org.eclipse.jst.jee.server:newsInfoCrawler "/ ></Host>

Delete, stay, get

<context docbase= "D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT" Path= "" reloadable= "false"/>

Step three: Delete all folders under Tmp0\work\catalina\localhost;

I'm here, D:\Code\MyJavaCode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost.

Step four: Remove Tomcat

Step five: Reconfigure Tomcat

Eclipse Tomcat Error: Document base ... does not exist or was not a readable directory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.