[英]404 error when called the default jsp page, able to call index.html
环境 -Eclipse IDE,通过在Eclipse中创建tomcat服务器的实例来运行它。
总体设置 -我在Tomcat服务器中部署了2个Web应用程序(A和B),其中A调用B和其他事情发生。 在大多数情况下,这都可以正常工作。
在进一步挖掘时,我尝试使用URL从应用B加载一个jsp页面-
http://localhost:8080/testrunner/login
但不能那样做 。 但是我可以从该URL调用index.html-
http://localhost:8080/testrunner/
当前解决方案 - 解决此问题的方法是简单地重新部署应用程序B,而我很好,即我是应用程序A调用应用程序B。
问题 -
任何帮助/线索将不胜感激。
从提供的细节我可以说
您已将应用程序部署为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.