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

eclipse新建web项目运行时出现The requested resource is not available错误

 
阅读更多

在eclipse里新建了一个web项目,加了一个test1.jsp。

新建了一个tomate的server,绑定到项目里。

Run-As->Run On Server,  网页中显示The requested resource is not available错误。

解决办法:

1.检查jsp的目录是否正确,要放到WebContent下面,不能在其他目录下,很多人误操作会放到WEB-INF下面。

 

2.检查server项目的web.xml中,

 <init-param>

            <param-name>listings</param-name>

            <param-value>true</param-value>//默认是false,此处要改成true

        </init-param>

 

3.检查访问的URL是否拼写正确。

 

4.检查jsp文件的名字是不是在项目的web.xml中出现了,(这个在其他人的解决办法中看到,貌似名字不匹配也可以访问,作为参考)

<welcome-file-list>

<welcome-file>index.html</welcome-file>

<welcome-file>index.htm</welcome-file>

<welcome-file>index.jsp</welcome-file>

<welcome-file>default.html</welcome-file>

<welcome-file>default.htm</welcome-file>

<welcome-file>default.jsp</welcome-file>

</welcome-file-list>

如果为出现,可以重命名文件为index.jsp或者修改web.xml文件。

 

分享到:
评论

相关推荐

    IIS访问ASP页面时报错The requested resource is in use.的解决办法

    ### IIS访问ASP页面时报错“The requested ...通过以上步骤,可以有效地解决IIS访问ASP页面时出现的“The requested resource is in use”错误。如果问题仍然存在,建议联系专业的技术支持人员进行更深入的诊断和修复。

    IIS HTTP 错误 404.17 – Not Found 解决方法

    错误提示如下图: 出现这种情况的原因通常是因为先安装了Framework,后安装的IIS; 运行cmd,输入: 代码如下:C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet_regiis -i  注:C:\Windows\Microsoft.NET\...

    Amazon C# 卖家/S-API接口Demo,官方Demo一堆错误,千万不要被误导

    Amazon 卖家接口Demo,官方Demo一堆错误,千万不要被误导。 解决: 1、Access to requested resource is denied 2、The security token included in the request is invalid 有疑问可提问

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

    这些JAR文件是运行SSH整合项目所必需的,它们提供了框架的功能实现和API接口,供开发者在编码时调用。 在实际开发中,使用SSH整合可以极大地提高开发效率,因为它提供了一套完整的解决方案,涵盖了从控制层到持久层...

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

    如果要运行的不是 JSP 文件,而是 servlet(.class)文件,需要在 WEB-INF 目录下的 web.xml 文件中添加以下代码: &lt;servlet-name&gt;HelloWorldServlet &lt;servlet-class&gt;HelloWorldServlet &lt;servlet-name&gt;...

    dashboard .zip

    k8s的16版本安装的时候,dashboard 出现k8s dashboard the server could not find the requested resource的问题。重新换一个2.0版本的dashboard即可。

    Nginx解决转发地址时跨域的问题

    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 这就是跨域问题。解决方案有不少,比较好的是服务器端配置CORS,但要求服务器端...

    WEB开发中错误信息大全

    7. **跨域问题**:浏览器的同源策略限制了不同源的请求,这可能导致`No 'Access-Control-Allow-Origin' header is present on the requested resource`错误。 8. **CSS/JS加载错误**:如果样式表或脚本文件未正确...

    静态文件访问不到报No Access-Control-Allow-Origin处理办法

    当一个网页尝试从不同的源(协议、域名或端口)请求资源时,如果目标服务器没有允许这个源的权限,浏览器会阻止该请求,从而出现"No 'Access-Control-Allow-Origin' header is present on the requested resource"的...

    apache启动报错:the requested operation has failed解决办法

    在使用Apache Web服务器的过程中,可能会遇到一个常见的错误提示:“the requested operation has failed”。这个错误通常出现在Apache服务启动失败时,它可能由多种原因造成,比如端口冲突、配置文件错误、系统设置...

    Docker push报错 :denied: requested access to the resource is denied

    在排除没有登录和网络的原因:我还是报的如下错误 原因镜像的名字没有按照规范命名: 你的dockerHub用户名/镜像名字:镜像版本 #我把 my_redis:v1 改成了 langxuhao/my_redis:v2 [root@instance-f4khj00x ~]# docker...

    ssh5的源文件

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

    unity 获取磁盘空间

    备注: System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives(); 在unity下使用会报错 NotImplementedException: The requested feature is not implemented. 本方法在unity下可以使用/

    error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    git首次提交代码到远程仓库提示413错误,错误信息如下 git push --set-upstream origin master Enumerating objects: 153, done. Counting objects: 100% (153/153), done. Delta compression using up to 4 ...

    Apache无法启动解决_the_requested_operation_has_failed.doc

    本文旨在解决Apache服务器在启动过程中出现的“the requested operation has failed”错误。这一问题可能是由多种因素导致的,包括但不限于端口冲突、软件冲突、配置文件错误以及网站根目录设置不当等。文章详细分析...

    SVN各种错误提示产生原因及处理方法大全

    该错误提示的原因是服务器地址错误,是普通 Web 页面,不支持 SVN 的 WebDAV 协议。解决方法是确认输入正确的 SVN 服务地址,可以在浏览器中输入该地址进行确认。 5. The version of your subversion (client) is ...

    HomeBrew 下载时出现 404 错误

    curl: (22) The requested URL returned error: 404 Not Found Error: An exception occurred within a child process: DownloadError: Failed to download resource “ant–bcel” 经过查看,homebrew寻找的该软件...

    DriveInfo.rar

    DriveInfo.rar是一个包含s60手机设备信息检测源码的压缩包文件,主要针对的是运行在诺基亚S60平台上的智能手机。S60(Series 60)是诺基亚开发的一种基于Symbian操作系统(Symbian OS)的用户界面,广泛应用于早期的...

    proe二次开发常见错误及结果

    3. 预编译头文件错误C1083:当编译器无法找到预编译头文件时会出现此错误。通常是因为预编译头文件不存在或者路径不正确。检查项目的配置和文件目录,确保预编译头文件已经被正确创建并且路径设置正确。 4. DEBUG与...

Global site tag (gtag.js) - Google Analytics