Tomcat Error Java.lang.IllegalArgumentException:Document base XXXXX does not exist or was not a readable directory

Source: Internet
Author: User
Tags readable

When you start Tomcat, the following error is reported:

Java.lang.IllegalArgumentException:Document base F:\java\tools\tomcat\me-webapps\drp1.1 does not exist or was not a Reada BLE directory
At Org.apache.naming.resources.FileDirContext.setDocBase (filedircontext.java:142)
At Org.apache.catalina.core.StandardContext.resourcesStart (standardcontext.java:4324)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4493)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1060)
At Org.apache.catalina.core.StandardHost.start (standardhost.java:822)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1060)
At Org.apache.catalina.core.StandardEngine.start (standardengine.java:463)
At Org.apache.catalina.core.StandardService.start (standardservice.java:525)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:759)
At Org.apache.catalina.startup.Catalina.start (catalina.java:595)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:289)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:414)

Probably the case is F:\java\tools\tomcat\me-webapps\drp1.1 this path is not drp1.1 but in Tomcat work\catalina\localhost\ The following has been generated drp1.1, and later in Tomcat's conf\server.xml found a sentence configuration:

Delete <context> Remove.

Tomcat Error Java.lang.IllegalArgumentException:Document base XXXXX 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.