path 指得是你的Web的虚拟主目录,docBase是你的虚拟主目录对应的硬盘上的文件目录。你可以这样写
 <Context path="/text" docBase="e:\text" debug="0" reloadable="true">启动tomcat
然后在浏览器里面输入 http://localhost:8080/text/index.jsp 看行不行。

解决方案 »

  1.   

    给平儿:
       如此我试过了。不行
        是不是〈host 。。docBase=""/〉此处也应该如何设置
      

  2.   

    http://expert.csdn.net/Expert/topic/2282/2282563.xml?temp=.2970392
      

  3.   

    如下,改一下端口和路径!<Server port="8005" shutdown="SHUTDOWN" debug="0">  <!-- Define the Tomcat Stand-Alone Service -->
      <Service name="Tomcat-Standalone">    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="80"
                   minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="100" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" disableUploadTimeout="true" />    <Engine name="Standalone" defaultHost="localhost" debug="0">      <!-- Define the default virtual host -->
          <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" 
                autoDeploy="true">        <Logger className="org.apache.catalina.logger.FileLogger"
                    directory="logs"  prefix="localhost_log." suffix=".txt"
                    timestamp="true"/>        <Context path="" docBase="D:\JSPWeb" debug="1" reloadable="true"
                     crossContext="true"/>      </Host>    </Engine>  </Service></Server>
      

  4.   

    你的修改没问题
    重新启动下看看
    TOMCAT是需要重新加载XML文件的
      

  5.   

    1、找到TOMCAT目录下的CONF目录下的server.xml文件,并用记事本打开。
    2、找到server.xml文件中以下文本:
    3.要在<Host name="localhost" debug="0" appBase="webapps" 
           unpackWARs="true" autoDeploy="true">
    </Host>中间      <Context path="/myjsp" #注意虚拟目录名myjsp(http://localhost:8080/myjsp)
                    docBase="e:\jsp" 把你的jsp文件放在哪个盘中
                    crossContext="false"
                    debug="0" 
                    reloadable="true" > 
    重起TOMCAT!!!!!!!