Tomcat error "Inside the host AppBase has been specified, and'll be ignored"

Source: Internet
Author: User
Tags tomcat
Error message:

Warning: A docBase d:/tomcat/webapps/myapp inside the host appbase has been, and would be specified

Error Reason:

Suppose you want to deploy the project "MYAPP" and put it under ${catalina.home}/webapps. (This is equivalent to the implicit definition of a docBase, pointing to

"${catalina.home}/webapps/myapp").

At the same time, the configuration file Myapp.xml is established under/conf/catalina/localhost, in which the docBase is defined and the target points to "${catalina.home}/webapps/myapp".

This way, when Tomcat is started, the docBase defined in the Myapp.xml configuration file is found first, and then Tomcat automatically detects if the ${catalina.home}/webapps has a legitimate project under it and loads (depending on the configuration file's settings). This way, Tomcat finds an identical docBase, so it prints out the error message.

Solution:

Move the MYAPP project from the ${catalina.home}/webapps directory, and then modify the configuration file Myapp.xml point to the directory.

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.