简体   繁体   English

本地Eclipse 404 Tomcat 8

[英]localhost eclipse 404 tomcat 8

I just installed Eclipse and Tomcat 8 to work on a shared project, that I got from bitbucket/sourcetree. 我刚刚安装了Eclipse和Tomcat 8来处理从bitbucket / sourcetree获得的共享项目。

But when I add the project to the Tomcat 8 server, I get 404 status. 但是,当我将项目添加到Tomcat 8服务器时,我的状态为404。

I tried creating a new dynamic web project and made a test.html in WebContent, added it to the server and it worked. 我尝试创建一个新的动态Web项目,并在WebContent中创建了一个test.html,然后将其添加到服务器中并且可以正常工作。

What can be the reason that one projects works in my server, but the other one does not? 一个项目可以在我的服务器上运行而另一个项目不能运行的原因可能是什么?

Check the shared project Targeted Runtimes. 检查共享项目的目标运行时间。 It could be set to another version of Tomcat. 可以将其设置为另一版本的Tomcat。

Project -> Properties-> Targeted Runtimes 项目->属性->目标运行时

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

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