add
<Context path="" docBase="" reloadable="false" />
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="" reloadable="false" /> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host>
docBase: represents the path of the project,
note: add your project's path published in tomcat's webapps here, an error will be reported if the path cannot be accessed
path: represents the project name when accessing