本帖最后由 buqibushe 于 2011-06-10 08:31:54 编辑

解决方案 »

  1.   

    参考下http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
    <Context path="/myapp"  docBase="C:/jakarta-tomcat-6.0.29/webapps/myapp"  debug="0" reloadable="true"/> 
      

  2.   

    应该是你加错地方了<Context docBase="chlw" path="/chlw" reloadable="true" source="org.eclipse.jst.jee.server:chlw"/><Context docBase="jrtcms" path="/" reloadable="true" source="org.eclipse.jst.jee.server:jrtcms"/></Host>
      

  3.   


    我不知道你们的Context标签是哪来的?我的server.xml下没有一个Context????而且我的server.xml下面是appBase,而不是docBase,????大家指教,我的server.xml是安装目录下的conf下的
      

  4.   

    你在host标签里面嵌套个<Context path="/你web工程" docBase="你工程路径"  reloadable="true">    
        </Context> 
      

  5.   


    还是要重启,请大家帮忙看看我的server.xml中的host节点,多谢了      <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true" reloadable="true"
                xmlValidation="false" xmlNamespaceAware="false">        <!-- SingleSignOn valve, share authentication between web applications
                 Documentation at: /docs/config/valve.html -->
            <!--
            <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
            -->        <!-- Access log processes all example.
                 Documentation at: /docs/config/valve.html -->
            <!--
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
                   prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
            -->
    <Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/>        </Host>
      

  6.   

    楼主是不是用的eclipse的发布(deploy)功能发布到了tomcat的webapps下?
    方法1:如果是那就不要发布了,把发布的ne5文件夹删掉

    <Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/>   
    或者
    方法2:保留webapps下的ne5 context改为
    修改为:
    <Context path="/ne5" docBase="ne5" debug="0" reloadable="true"/>  
    建议用方法1,省的每次都发布。
      

  7.   


    我不是用eclipse发布的,直接用appBase(server.xml下的appBase,不是docBase,因为没有这个属性)下的目录,用操作系统的ie访问,按你的说法,我的配置就是你的方法一,没什么区别,但为什么还是不行????多谢了