HTTP Status 404(The requested resource is not available)
原因: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就是错误的
文件位置存放错误。
转载于:https://www.cnblogs.com/jinzhengquan/archive/2011/02/12/1952894.html
HTTP Status 404(The requested resource is not available)相关推荐
- HTTP Status 404(The requested resource is not available)(转)
原文地址:http://hi.baidu.com/moonhai/blog/item/1fbfd1dfad063d5395ee37e4.html HTTP Status 404(The request ...
- 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 ...
最新文章
- textarea 在浏览器中固定大小和禁止拖动
- python变量词是什么意思_python1变量,表达式和语句
- 东北育才 数论专场第2场
- c++将字符串转换成 int 类型
- 什么是光纤放大器?光放大器的原理是什么?
- js 中转换成list集合_程序员:java集合介绍-List,具说很详细,你不来看看?
- ASP.NET MVC 入门2、项目的目录结构与核心的DLL
- centos 7.3 设置静态IP
- 基于×××环境下的远程视频监控传输
- 《深入分析Java Web技术内幕》读书笔记
- HFSS19 官方中文教程系列 L05
- 指数族分布(2):矩母函数、累积量生成函数
- 淘宝Refrash_token签名错误的解决办法
- 初装vs2010旗舰版 遇到的错误
- PTA:输出较大或较小值(c++,函数模板)
- 递归边界条件不足的解决方法
- 什么是VLAN?VXLAN?以及VLAN和VXLAN的区别?
- 集团审计BI项目的特点
- 高德开发者地图 快速使用报错
- 技术干货:工欲善其事,必先利其器 阿里云数据库系列谈之一