`
beckdim
  • 浏览: 178729 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

The requested resource(/)is not available问题

    博客分类:
  • Java
阅读更多

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>
 

这样就可以开启目录浏览功能,当然题目所述问题就可以解决掉,但是会有何安全性问题还不清楚。
6
1
分享到:
评论
5 楼 Eagleme 2013-03-01  
我试了一下,可是似乎还是不行啊!
4 楼 mutoududu1 2012-10-16  
试了 没有解决。。只是
The requested resource () is not available.
变成了
The requested resource (/SWDT/login.jsp) is not available.
3 楼 JingWen_01 2012-07-09  
成功了。谢谢。
2 楼 小豆豆12 2012-05-04  
试了,不行
1 楼 cuitengfei2006x 2012-04-18  
我试过了,好像不好使

相关推荐

    HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充

    HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充

    ChromeStandalone_48.0.2564.116

    xp用的ChromeStandalone 48.0.2564.116,是最后第二个版本。

    2013年12月7日最新SSH整合Jar包

    2013年12月7日最新SSH整合Jar包

    ssh5的源文件

    description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题

    问题-求助-jsfdemo

    新手jsf问题。http://localhost:8080/jsfdemo/userLogin.faces 出现 The requested resource (/jsfdemo/userLogin.faces) is not available.

    微软内部资料-SQL性能优化2

    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...

    a project model for the FreeBSD Project.7z

    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 ...

    p7331323_10204_AIX5L

    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 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 ...

    servlet2.4doc

    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, ...

    ajax使用不同namespace的action的方法

    ajax 如何使用不同namespace的action 如我的question_save在/question命名空间,那我ajax的url写成:”../question/question_save.aciton” ...和the requested resource is not available. 您可能感兴趣的

    Java邮件开发Fundamentals of the JavaMail API

    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...

    acpi控制笔记本风扇转速

    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 ...

    [MS.Press].Microsoft.C#.Language.Specifications.pdf

    This book contains some of the most requested topics on Microsoft .NET available through the Microsoft Developer Network (MSDN)—Microsoft’s premier developer resource. Microsoft C# Language ...

    Bloodshed Dev-C++

    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 ...

    Delphi7.1 Update

    * 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 ...

Global site tag (gtag.js) - Google Analytics