简体   繁体   English

Apache Tomcat或Eclipse重定向到localhost:8080 /而不是localhost:8080 / projectname / index.jsp

[英]Apache Tomcat or Eclipse redirect to localhost:8080/ instead of localhost:8080/projectname/index.jsp

I'm getting the same problem described in this question: Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp But in Eclipse. 我遇到的问题与上述问题相同: Tomcat服务器上的Intellij Web应用程序显示的是http:// localhost:8080 / index.jsp而不是http:// localhost:8080 / myapp / index.jsp但在Eclipse中。 I cannot setup the URL to open the correct index.jsp and it's not trivial how to do it en Eclipse from that answer. 我无法设置URL来打开正确的index.jsp,并且如何从该答案中进行Eclipse并非易事。

So, the problem was a misconfiguration I might have made in the process and I couldn't find. 因此,问题是我在处理过程中可能配置错误,而我找不到。 I solved the issue simply restarting a new project and copying my files there. 我解决了这个问题,只需重新启动一个新项目并在那里复制我的文件即可。 The issue was gone by then. 到那时问题已经不复存在了。

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

相关问题 我无法使用“ localhost:8080 / mywebapp / index.jsp”进行Maven战争 - I can't run Maven war using “localhost:8080/mywebapp/index.jsp” 我通过Tomcat在Eclipse中托管了服务器,但无法从浏览器访问localhost:8080或我的jsp页面 - I hosted a server in eclipse by tomcat but cant access localhost:8080 or my jsp page from browser 尝试在Eclipse中安装apache tomcat时出现“HTTP Status 404 - /”(localhost:8080) - “HTTP Status 404 - /” (localhost:8080) when trying to install apache tomcat in Eclipse 如何停止localhost:// 8080上的Apache / Tomcat服务器? - How do I stop Apache/Tomcat server on localhost://8080? Tomcat 6在Eclipse中运行,但是localhost:8080在浏览器中从未响应 - Tomcat 6 is running in Eclipse but localhost:8080 never responds in browser Tomcat在Eclipse运行时打不开http://localhost:8080/ - Cannot open http://localhost:8080/ when Tomcat is running in Eclipse Tomcat 在 Eclipse 中启动但无法连接到 http://localhost:8080 - Tomcat started in Eclipse but unable to connect to http://localhost:8080 tomcat无法启动projectname / index.jsp - tomcat can't start projectname/index.jsp Tomcat7(localhost:8080):404错误 - Tomcat7 (localhost:8080): 404 error Tomcat服务器启动,但是localhost:8080没有启动 - tomcat server started but localhost:8080 is not up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM