繁体   English   中英

调用默认的jsp页面时出现404错误,能够调用index.html

[英]404 error when called the default jsp page, able to call index.html

环境 -Eclipse IDE,通过在Eclipse中创建tomcat服务器的实例来运行它。

总体设置 -我在Tomcat服务器中部署了2个Web应用程序(A和B),其中A调用B和其他事情发生。 在大多数情况下,这都可以正常工作。

原始问题方案

  1. 可以说我几个小时都无人看管我的机器,然后回来重新启动服务器(其中部署了2个应用程序)。
  2. 打开浏览器,我可以调用应用程序A,但无法与应用程序B建立连接。

在进一步挖掘时,我尝试使用URL从应用B加载一个jsp页面-

http://localhost:8080/testrunner/login

但不能那样做 HTTP状态404 但是我可以从该URL调用index.html-

http://localhost:8080/testrunner/

当前解决方案 - 解决此问题的方法是简单地重新部署应用程序B,而我很好,即我是应用程序A调用应用程序B。

问题 -

  1. 但是我的问题是为什么我应该得到此错误以及如何在不重新部署应用B的情况下解决此问题。
  2. 另外,当我执行当前解决方案时,登录页面会在eclipse的浏览器中加载,但不会在FF浏览器中加载。 不知道这里缺少什么。

任何帮助/线索将不胜感激。

从提供的细节我可以说

您已将应用程序部署为testrunner 因此, http://localhost:8080/testrunner/从部署描述符welcome-file-list提供的welcome-file-list调用index.html

404 or Not Found error message is a HTTP standard response code indicating that the
client was able to communicate with the server, but the server could not find what was
requested.

当您执行http://localhost:8080/testrunner/login ,服务器找不到名为\\login任何映射。 所以,请检查您有“映射/login应用程序中的”叫“的TestRunner”

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM