HTTP Status 404 - /stove
type Status report
message /stove
description The requested resource (/stove) is not available.
Apache Tomcat/5.5.26
在stove中小实例中没有太多东西,只是一个test而已,一看就是找不到路径的问题,但是路径确确实实是存在的,这个我呢提以前碰到过,让这么幼稚的问题困住很是尴尬。后来才发现是tomcat在作怪,tomcat从5.5版本之后,在默认配置上面很一些不同,可能记录安全性的考虑,从5.5之后关闭了默认的目录浏览功能,其他默认设置有什么变化现在还发现。
对应的配置选项在apache-tomcat-5.5\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>
解决方法:
将其中的
<init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param>
设置由false改为true,即可开启目录浏览功能
而在Tomcat5.0.25中
对应的配置选项在apache-tomcat-5.0.25\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>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
这样就可以开启目录浏览功能,当然题目所述问题就可以解决掉,但是会有何安全性问题还不清楚。
分享到:
相关推荐
在本文中,我们将讨论七种常见的解决方案,以帮助开发者快速解决该问题。 1. 未部署 Web 应用 如果您遇到了 HTTP Status 404 错误,首先需要检查是否部署了 Web 应用程序。未部署的 Web 应用程序将导致请求的资源...
SSH整合是指Spring、Struts和Hibernate这三大开源框架的集成应用。这三大框架分别是Spring作为应用的IoC(Inversion of Control,控制反转)和AOP(Aspect-Oriented Programming,面向切面编程)容器,Struts作为MVC...
description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题
新手jsf问题。http://localhost:8080/jsfdemo/userLogin.faces 出现 The requested resource (/jsfdemo/userLogin.faces) is not available.
A 32-bit process is normally limited to addressing 2 gigabytes (GB) of memory, or 3 GB if the system was booted using the /3G boot switch even if there is more physical memory available. By leveraging...
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 ...
The definition is not lim¬ited to de¬vices that use a physical tablet. In fact, this specification can support de¬vices that combine rela¬tive and absolute pointing as well as purely relative ...
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, ...
The API's main purpose is not for transporting, delivering, and forwarding messages; this is the purview of applications such as sendmail and other Mail Transfer Agent (MTA) type programs. MUA-type...
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 ...
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, ...
在给定的部分内容中,出现了一个错误信息:“The requested resource(/SSHProject/index.jsp) is not available.” 这表明请求的资源没有找到,可能是由于文件路径错误或者配置问题导致的。开发者通常会通过检查项目...
the requested CVS action Version 4.9.6.8 * support for DLL application hosting, for debugging and executing DLLs under Dev-C++. * New class browser option: "Show inherited members" * Added support ...
* 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 ...
加载jsp页面找不到路径:descriptionThe requested resource is not available. - **原因**:这表示请求的JSP页面路径不存在。 - **解决办法**: - 检查JSP页面的实际路径与配置文件中指定的路径是否一致。 - ...
当遇到“Requested resource is not available”错误,通常是HTTP Status 404错误,表示请求的资源不存在或不可达。这可能是因为ArcGIS Server的REST服务没有正确配置或启动,或者客户端请求的URL不正确。检查`/...
在实际开发中,经常遇到“the requested resource is not available.”的错误提示,这通常是由于URL构建不正确或者服务器端配置问题导致的。确保以下几点可以帮助避免这类问题: 1. **正确配置服务器端路由**:确认...
Requested Circuit/Channel Not Available - **定义**:表示请求的电路/通道不可用。 - **应用场景**:当请求的特定电路或通道无法使用时触发。 - **技术背景**:这可能是因为资源被占用或其他原因导致的问题。 ##...
- **Socket error #10057 - Socket is not connected**:Socket未连接。 - **Socket error #10058 - Cannot send after socket shutdown**:Socket关闭后不能发送数据。 - **Socket error #10061 - Connection ...