原因:servlet没有配置正确 ,查看web.xml确认正确,以及自己的请求路径正确
在IE中提示“404”错误有以下三种情况
1.未部署Web应用
2.URL输入错误
排错方法:
首先,查看URL的IP地址和端口号是否书写正确。
其次,查看上下文路径是否正确 Project--------Properties------MyElipse-----Web-----
Web Context-root检查这个路径名称是否书写正确。
最后,检查一下文件名称是否书写正确。
3.目录不能被引用
排错方法:
在 Eclipse的“包资源管理器(Package Explorer)”检查文件存放的位置。由于META-INF
WEB-INF文件夹下的内容无法对外发布,所以,如果你引用了带这两个目录的文件,肯定是不允许。例如: http://localhost:8080/guestbook/WEB-INF/index.html就是错误的
文件位置存放错误
4. Tomcat服务器中web.xml中的问题
排错方法:
如果你的web应用程序有多个jsp页面的话,当你点击你web应用程序的虚拟根目录时可能会出现404错 误,只是你只需要修改Tomcat服务器中web.xml
<init-param>
<param-name>listings</param-name>
<param-value>false(将其该为true)</param-value>
</init-param>
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/IBM_linghb1985/archive/2009/02/06/3866817.aspx
分享到:
相关推荐
HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充
错误提示如下图: 出现这种情况的原因通常是因为先安装了Framework,后安装的IIS; 运行cmd,输入: 代码如下:C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet...Win7中IIS出现“HTTP 错误 404.17 – Not Foun
IIS访问ASP页面时报错The requested resource is in use.的解决办法
xp用的ChromeStandalone 48.0.2564.116,是最后第二个版本。
2013年12月7日最新SSH整合Jar包
description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题
k8s的16版本安装的时候,dashboard 出现k8s dashboard the server could not find the requested resource的问题。重新换一个2.0版本的dashboard即可。
Amazon 卖家接口Demo,官方Demo一堆错误,千万不要被误导。 解决: 1、Access to requested resource is denied 2、The security token included in the request is invalid 有疑问可提问
apache启动报错:the requested operation has failed解决办法的几种解决方法!
静态文件访问不到报No 'Access-Control-Allow-Origin' header is present on the requested resource处理办法
备注: System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives(); 在unity下使用会报错 NotImplementedException: The requested feature is not implemented. 本方法在unity下可以使用/
Apache无法启动解决_the_requested_operation_has_failed
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, ...
git首次提交代码到远程仓库提示413错误,错误信息如下 git push --set-upstream origin master Enumerating objects: 153, done. ... HTTP 413 curl 22 The requested URL returned error: 413 Req
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 这就是跨域问题。解决方案有不少,比较好的是服务器端配置CORS,但要求服务器端...
在排除没有登录和网络的原因:我还是报的如下错误 原因镜像的名字没有按照...The push refers to repository [docker.io/langxuhao/my_redis] cd1b418d5a74: Pushed ddf2402ca3ea: Pushed 00352274272b: Pushed a0e3c
Struts Logic标签库中包含的标签列表 Tag name Description empty 如果标签parameter,...notEqual Evaluate the nested body content of this tag if the requested variable is not equal to the specified value.
plink 150m迷你型无线路由器出故障该怎么办?plink 150m联网以后发现没有信号,设备连不上去,该怎么办呢?今天我们就来看看plink 150m路由器故障的两种解决办法,需要的朋友可以参考下
[Laravel][PHP][教學]_設定安裝#補充_[跨平台]_錯誤解決_requested_PHP_extension_fi