`
午饭OTZ
  • 浏览: 2288 次
文章分类
社区版块
存档分类
最新评论

HTTP Status 404(The requested resource is not available)(转)

 
阅读更多
原文地址:http://hi.baidu.com/moonhai/blog/item/1fbfd1dfad063d5395ee37e4.html
HTTP Status 404(The requested resource is not available)2009-01-21 19:52HTTP Status 404 - //


--------------------------------------------------------------------------------

type Status report

message //

description The requested resource (//) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18

在百度搜索了,得到了提示:

原因:servlet没有配置正确 ,查看web.xml确认正确,以及自己的请求路径正确。

解决:在MyEclipse中点开web.xml查找了n遍,web.xml配置的没有一点错误。然后到程序中查找各个请求的路径,也没有错误。查找了好半天,终于找到了,原来是我在MyEclipse重构的时候复制web.xml的时候,不小心把它复制到了WEB-INF中的lib文件夹中了。当时没有察觉,浪费了我好多时间。把web.xml拖出来放到WEB-INF中就解决了。

HTTP Status 404

在IE中提示“404”错误有以下三种情况

I.未部署Web应用

II.URL输入错误

       排错方法:

首先,查看URL的IP地址和端口号是否书写正确。

       其次,查看上下文路径是否正确 Project--------Properties------MyElipse-----Web-----

Web Context-root检查这个路径名称是否书写正确。

最后,检查一下文件名称是否书写正确。

III.目录不能被引用

       排错方法:

       在 Eclipse的“包资源管理器(Package Explorer)”检查文件存放的位置。由于META-INF

WEB-INF文件夹下的内容无法对外发布,所以,如果你引用了带这两个目录的文件,肯定是不允许。例如: http://localhost:8080/guestbook/WEB-INF/index.html就是错误的

文件位置存放错误。

分享到:
评论

相关推荐

    HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充

    HTTP Status 404 解决方案总结 HTTP Status 404 是一个常见的错误代码,它表示请求的资源不可用。在本文中,我们将讨论七种常见的解决方案,以帮助开发者快速解决该问题。 1. 未部署 Web 应用 如果您遇到了 HTTP ...

    ssh5的源文件

    description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    a project model for the FreeBSD Project.7z

    The main resource in the FreeBSD community is its developers: the committers and contributors. It is with their contributions that the project can move forward. Regular developers are referred to as ...

    p7331323_10204_AIX5L

    There is no workaround available. However, if the instance fails to start, a reboot of the server supporting the instance will usually allow startup to succeed. Patches At the time of writing, ...

    SVN各种错误提示产生原因及处理方法大全

    5. The version of your subversion (client) is below 1.5.0, upgrade to 1.5.0 or above. 该错误提示的原因是客户端的软件版本低于 1.5.0。解决方法是升级本地的 Subversion 客户端软件到 1.5.0 或以上版本,以...

    acpi控制笔记本风扇转速

    exclusion and the interrupt level indication flag is not needed. Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained. The global lock ...

    Delphi7.1 Update

    * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and ...

    arcgis server 常见问题

    当遇到“Requested resource is not available”错误,通常是HTTP Status 404错误,表示请求的资源不存在或不可达。这可能是因为ArcGIS Server的REST服务没有正确配置或启动,或者客户端请求的URL不正确。检查`/...

    SS7、PRI Cause定义.txt

    Requested Circuit/Channel Not Available - **定义**:表示请求的电路/通道不可用。 - **应用场景**:当请求的特定电路或通道无法使用时触发。 - **技术背景**:这可能是因为资源被占用或其他原因导致的问题。 ##...

Global site tag (gtag.js) - Google Analytics