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.