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)(转)相关推荐
- linux http status404,解决问题:HTTP Status 404(The requested resource is not avail
IE错误如下: HTTP Status 404 - /streetManager/index.jsp type Status report message /streetManager/index.j ...
- HTTP Status 404 - The requested resource (/Test/loginSerlet) is not available.
像我这种菜鸟,刚刚开始学习JSP知识~~ HTTP Status 404 - /Test/loginSerlet type Status report message /Test/loginSerle ...
- The requested resource (/) is not available
The requested resource (/) is not available HTTP Status 404(The requested resource is not available) ...
- The requested resource is not available错误
"HTTP Status 404(The requested resource is not available)"示例 HTTP Status 404(The requested ...
- JSP调试遇到“the requested resource is not available”
最近在尝试做一个动态网站项目,利用JSP+Java开发,可是刚开始做个登录界面就被一个难题给困住了,那就是一输入网址就出现404错误"the requested resource is no ...
- TOMCAT报错:HTTP Status 404 -
构建struts2工程师,tomcat报错: HTTP Status 404 - type Status report message description The requested resour ...
- 解决 : Apache Tomcat/8.0.0-RC1 - Error report ... HTTP Status 404
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.报错: Apache Tomcat/8.0.0-RC1 - Error report HTTP ...
- 搭建K8S 的dashboard的坑the server could not find the requested resource
搭建K8S 的dashboard的时候显示404 the server could not find the requested resource 如图所示 然后日志文件 是这个样子的 Oct 17 ...
- web程序无法访问:The requested resource () is not available.错误
昨天按照书本写的第一个web程序就不能看到结果,显示结果如下: HTTP Status 404 - type Status report message description The request ...
最新文章
- spring aop使用详解
- html背景幻灯片图片,CSS3全屏背景图像幻灯片
- linux几个常用的环境变量配置文件
- PowerShell批量检查域密码弱口令
- 搭建Git Server - Centos+Gitosis
- HashMap的使用方法及注意事项
- RTT添加AD驱动代码
- 动态球html,用html5标签让小球动起来
- 异常日志处理-ThrowsAdvice
- 刘谦春晚再掀魔术热 网上木马趁火打劫
- 机器学习数学基础之微分
- photoshop CS6 注册码文件 amtlib.dll
- 【iOS】—— 获取设备唯一标识
- Web前端页面访问权限控制总结
- 19-图片标签注意点
- Fatal NI connect error 12170错误解决办法
- windows efi分区修复
- fstream常用方法详解
- 极客算法训练笔记(六),十大经典排序之希尔排序,快速排序
- java ddmm.mmmm转ddd,GPS坐标转换ddmm.mmmm(度分)- dd.dddd(度)