在<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">后加上
<Context path="/web" reloadable="true" docBase="web" debug="99"/>
(可添加多个)其中web为项目名称。比如我的工程叫12305配置文件为:

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/12305" docBase="12305" debug="0" reloadable="true"/>
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/12305" docBase="12305" debug="0" reloadable="true"/>