<Context  path="/jsp"  docBase="c:\jsp"  debug="0" reloadable="false"></Context>

解决方案 »

  1.   

    type Status reportmessage /jsp/dongwang/index.jspdescription The requested resource (/jsp/dongwang/index.jsp) is not available.
      

  2.   

    http://localhost:8080/jsp/dongwang/index.jsp
      

  3.   

    http://localhost:8080/jsp/dongwang/index.jsp
    可以网上聊一下吗?我想这会更方便!谢谢!
    64406601
      

  4.   

    http://localhost:8080/manager/jsp/dongwang/index.jsp
      

  5.   

    /jsp/dongwang/index.jsp
    你放在哪个虚拟目录下?
      

  6.   

    我就是在c盘建立了一个文件夹叫jsp,然后我把dongwang这个文件拷贝当中。就这样了!
      

  7.   

    <Context path="/examples" docBase="examples" debug="0"
                     reloadable="true" crossContext="true">
    <Context  path="/jsp"  docBase="c:/jsp"  debug="0" reloadable="false"></Context>
    改为:
    <Context path="/examples" docBase="examples" debug="0"
                     reloadable="true" crossContext="true">
    </Context>
    <Context  path="/jsp"  docBase="jsp"  debug="0" reloadable="false">
    </Context>
    你可以在examples同一目录中放置jsp目录
      

  8.   

    c盘建立了一个文件夹叫jsp,然后我把dongwang这个文件拷贝当中
    这时你应该在server.xml添加一个虚拟目录
    比如
    <Context  path="/jsp"  docBase="c:\jsp"  debug="0" reloadable="false">
    </Context>这时重启tomcat 然后在地址栏输入http://localhost:8080/jsp/dongwang/index.jsp
    就可以了
      

  9.   

    <!-- Tomcat Examples Context -->
            <Context path="/examples" docBase="examples" debug="0"
                     reloadable="true" crossContext="true"></Context>  
    <Context  path="/jsp"  docBase="c:\jsp"  debug="0" reloadable="false"></Context>还是不行!
      

  10.   

    http://localhost:8080/dongwang/index.jsp装好了TC,机器还需重启!
      

  11.   

    <Context path="/jsp" docBase="c:\jsp" debug="0" reloadable="true" crossContext="true" />注意大小写,访问该虚拟目录:
    http://localhost:8080/jsp
      

  12.   

    应该是这个目录c:\jsp有问题,你删除重新建一下
      

  13.   

    <!-- Tomcat Examples Context -->
            <Context path="/examples" docBase="examples" debug="0"
                     reloadable="true" crossContext="true">
    </Context>  
              <Context path="/jsp" docBase="c:\jsp" debug="0" reloadable="true" crossContext="true" ></Context>我改成这样以后,连原先的都进不去了。tomact找不到服务器。然后我用默认的server.xml覆盖以后恢复!
    上面写错了吗?
    而且我也重新启动了!
      

  14.   

    按我的这改吧,以下是我的虚拟目录
              </ResourceParams>
              <ResourceLink name="linkToGlobalResource" 
                        global="simpleValue"
                        type="java.lang.Integer"/>
            </Context>
    <Context path="/java" docBase="f:/java" debug="0" reloadable="true" crossContext="true"></Context>
    <Context path="/hns" docBase="F:/website/newshns" debug="0" reloadable="true" crossContext="true"></Context>
    <Context path="/tree" docBase="F:/code/Tree" debug="0" reloadable="true" crossContext="true"></Context>
    <Context path="/sohosystem" docBase="F:/code/sohosystem" debug="0" reloadable="true" crossContext="true"></Context>
    <Context path="/echotest" docBase="F:/code/echo/test" debug="0" reloadable="true" crossContext="true"></Context>
          </Host>    </Engine>  </Service>
    放的位置和我的一样就行了,保你没问题
      

  15.   

    在默认的server.xml的<Context path="/examples"
    底下查找到的第一个        </Context>后面加上
    <Context path="/jsp" 
                     docBase="c:\jsp" 
                     crossContext="false"
                     debug="0" 
                     reloadable="true"> 
            </Context>
    再试试看
      

  16.   

    你原来的改法可能是在example的context中插入的 破坏了它的结构
    所以启动肯定是不行的
      

  17.   

    谁能帮我看看!
    电子信箱?我把我的sever.xml给他看看。
    我都快晕了!
      

  18.   

    是不是你虚拟目录的WED-INF有问题
      

  19.   

    我的虚拟目录就是在c盘建立了一个jsp的文件夹,它里面除了放了一个程序以外,别的什么都没放!
      

  20.   

    在sever.xml中
    找到</Host>后
    在</Host>得前面加上<Context path="/jsp" 
                     docBase="c:\jsp" 
                     crossContext="false"
                     debug="0" 
                     reloadable="true"> 
            </Context>
      

  21.   

    将example下的webinf目录内的web.xml复制,
    在你的目录下新建目录,吧web.xml拷贝到WEB-INF当中去
    然后在sever.xml中
    找到</Host>后
    在</Host>得前面加上<Context path="/jsp" 
                     docBase="c:\jsp" 
                     crossContext="false"
                     debug="0" 
                     reloadable="true"> 
            </Context>
    实在不行的话就不要再C:\  建立虚拟目录,在和examples同等的地位的地方建立
      

  22.   

    你把你的虚拟目录放在tomcat 默认的example虚拟目录中间了,当然会出错!
    把你的<context ... > </context>移到
    <!-- Tomcat Manager Context -->
            <Context path="/manager" docBase="manager" 
             debug="0" privileged="true"/>
    的下面就行了:)
      

  23.   

    jsp的文件夹,它里面除了放了一个程序以外,别的什么都没放!
    jsp
    目录下还要有WEB-INF
     可以参照example的目录建立
      

  24.   

    在server.xml中找到</host>后
    在其前面加上<Context path="/jsp" docBase="C:/jsp" crossContext="true" debug="0" reloadable="true" />这个配置在我的机器上运行成功,不过有两点需要注意1.我把jsp所在文件夹的地址加到CLASSPATH中了,你不妨试试;2.crossContext要记得设为true