{错误代码} - Error 404--Not Found

libidi 2006-12-09 01:33:04


Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.


以上是报错信息。
请详解。
MSN:ztao_17@hotmail.com
...全文
1050 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
welshem 2006-12-18
  • 打赏
  • 举报
回复
如果用的是Tomcat5.5.17及以上版:
%Tomcat_home%/conf/web.xml文件中:

<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

改为:
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value> //这儿改了
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
syhan 2006-12-18
  • 打赏
  • 举报
回复
这个错误,呵呵,多半是粗心啊
ever_xx 2006-12-18
  • 打赏
  • 举报
回复
路径错了LZ...
liaohaiying 2006-12-18
  • 打赏
  • 举报
回复
没有找到这个文件啊,路径不对吧
还有一种情况就是路径是对的,但是这个文件的代码中用到某个组件你没有安装或没有安装成功也会出现这种错误,我就遇到过这种情况
buyaowen 2006-12-18
  • 打赏
  • 举报
回复
mark
javailoveu 2006-12-09
  • 打赏
  • 举报
回复
up 查路径!
hhcom 2006-12-09
  • 打赏
  • 举报
回复
404代码是没有找到请求的URL对应的页面。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧