Java.lang.IllegalArgumentException:Document base D:\apache-tomcat-6.0.20\webapps\XXX appears when Tomcat starts Doe__web

Source: Internet
Author: User
Tags addchild tomcat
Java.lang.IllegalArgumentException:Document base D:\apache-tomcat-6.0.20\webapps\bookstore does not exist or are not a re Adable Directory
At Org.apache.naming.resources.FileDirContext.setDocBase (filedircontext.java:142)
At Org.apache.catalina.core.StandardContext.resourcesStart (standardcontext.java:4048)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4217)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:791)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:771)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:526)
At Org.apache.catalina.startup.HostConfig.deployDescriptor (hostconfig.java:630)
At Org.apache.catalina.startup.HostConfig.deployDescriptors (hostconfig.java:556)
At Org.apache.catalina.startup.HostConfig.deployApps (hostconfig.java:491)
At Org.apache.catalina.startup.HostConfig.start (hostconfig.java:1206)
At Org.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:314)
At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:119)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1053)
At Org.apache.catalina.core.StandardHost.start (standardhost.java:722)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1045)
At Org.apache.catalina.core.StandardEngine.start (standardengine.java:443)
At Org.apache.catalina.core.StandardService.start (standardservice.java:516)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:710)
At Org.apache.catalina.startup.Catalina.start (catalina.java:583)
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:585)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)

Today, I came across this problem, obviously the project under the WebApps has not existed, why or error.

According to the online method to try, the results are not, including: The Work/catalina/localhost things are deleted, check the configuration file of the useless connection, can not. Finally, I found: Conf\catalina\localhost under a bookmanager.xml file, is my error file name, so I am sure it is, delete after the restart Tomcat good, we recommend that you try

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.