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