顺便说一下,我的tomcat的虚拟路径设置完后,也不能生效,哪位大虾能够告诉我呀!
我向来是解决完问题就立即给分。

解决方案 »

  1.   

    在webserver.xml文件里找到以下的语句段:
           <WebServer id="webServer">
              <Service id="service0">
                <WebApplication id="examples" mapping="/examples" docBase="examples"/>
              </Service>
           </WebServer>
           只要在<WebApplication id="examples" mapping="/examples" docBase="examples"/>的语句下面加上:
           <WebApplication id="myweb" mapping="/myweb" docBase="myweb"/>就可以了,
    不用进行另外的修改。
    tomacat里面也是类似的,在server.xml中的
     <!-- example - how to override AutoSetup actions -->
            <Context path="/examples" docBase="webapps/examples" debug="0" reloadable="true" > 
            </Context>
    语句段后直接加入 <Context path="/jrr" docBase="webapps/jrr" debug="0" reloadable="true" >  </Context>就可以了。
      

  2.   

    说明,上面的jswdk里面的myweb文件夹是建在jswdk的根目录下的。而jrr是建立在tomcat中的webapps下面的!
      

  3.   

    主要的是我不想在jswdk目录下建立,我的jswdk是装在d:\jdwdk目录下,现在我想把c:\wygl设
    成我的虚拟目录,该怎么设呢?