有个问题在网上各种找解决方案无果。错误:
HTTP Status 404 - /abc/type Status reportmessage /abc/description The requested resource is not available.Apache Tomcat/7.0.42
abc是在webapps目录下的一个目录,我在里面放了一个hello.jsp文件,tomcat启动后我访问localhost:8080/manager/html
然后再点击abc这个目录就报了这个错误。
我把hello.jsp放在ROOT目录下可以正常打开Tomcat Version          JVM Version
Apache Tomcat/7.0.42 1.7.0_25-b17web.xml文件的内容:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"
  metadata-complete="true">  <display-name>Tomcat Documentation</display-name>
  <description>
     Tomcat Documentation.
  </description>
</web-app>

解决方案 »

  1.   

    D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps
      

  2.   

    D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc
    D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\WEB-INF
    D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\hello.jsp
    D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\WEB-INF\web.xml
      

  3.   

    aaa是项目名,jsp要放在webRoot下 ,求分!
      

  4.   

    tomcat 7.0\conf\Catalina\localhost  jsp路径配置有问题
      

  5.   

    现在问题是这样的,我在tomcat的manager页面中不能访问这个abc目录。先扔掉.jsp文件不谈,这个问题怎么解决。
    楼上有说是我jsp文件路径不对。我是看韩顺平老师的视频学的servlet和jsp。我的jsp路径和他的jsp路径完全一致,他成功了为何我不成功。。这是我想不通的地方。
      

  6.   

    你的问题肯定是工程路径的问题
    你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
    你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么
      

  7.   

    你的问题肯定是工程路径的问题
    你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
    你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么
    是的,正解~。
      

  8.   

    你的问题肯定是工程路径的问题
    你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
    你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么

    请问我没有用MyEclipse而是用的ue+命令行的话怎么解决这个问题?因为是在从基础学所以怕用了IDE记不清细节。
      

  9.   

    最后问题是这么解决的。在tomcat的conf目录下的web.xml里把listings参数值设置为true.