晕现在解决了,把原来
<Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
改成:<Host name="localhost" debug="5" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">E:\Tomcat\conf\Catalina\localhost下建个ROOT.xml内容为:
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Welcome to Tomcat" docBase="E:\www" path="" debug="0">
</Context>根目录就变到E:\www了

解决方案 »

  1.   

    在Tomcat的conf文件夹下有一个server.xml,
    打开它,在里面查找 webapps\ROOT,然后把它修改到你的目录下。然后重启Tomcat,测试
      

  2.   

    server.xml全部内容
    <Server port="8005" shutdown="SHUTDOWN" debug="0">  
      <Service name="ServiceDefineByDigitalTitan">
        <Connector className="org.apache.catalina.connector.http.HttpConnector"
                   port="9003" minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="10" debug="0" connectionTimeout="60000"/>
        <Engine name="EngineDefineByDigitalTitan" defaultHost="DigitalTitan" debug="0" appBase="F:\Site_River\">
          <Host name="DigitalTitan" debug="0" appBase="F:\Site_River\" unpackWARs="true">
            <Logger className="org.apache.catalina.logger.FileLogger"
                     directory="LogDefineByDigitalTitan"  prefix="LogDefineByDigitalTitan." suffix=".txt" timestamp="true"/>
    <Context path="" docBase="" debug="0">
            </Context>
          </Host>
        </Engine>
      </Service>
      <Service name="ServiceDefineByDigitalTitan">
        <Connector className="org.apache.catalina.connector.http.HttpConnector"
                   port="9001" minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="10" debug="0" connectionTimeout="60000"/>
        <Engine name="EngineDefineByDigitalTitan" defaultHost="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\">
          <Host name="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\" unpackWARs="true">
            <Logger className="org.apache.catalina.logger.FileLogger"
                     directory="LogDefineByDigitalTitan"  prefix="LogDefineByDigitalTitan." suffix=".txt" timestamp="true"/>
    <Context path="" docBase="" debug="0">
            </Context>
          </Host>
        </Engine>
      </Service>
    </Server>
      

  3.   

    不过楼主的问题好象应该
    d:\baikoo\WEB-INF\web.xml内容改成<?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app>
    </web-app>
      

  4.   

    其实楼主的两种方法都是对的,只不过TOMCAT5.09以前的用第一种,以后的用第二种