404用tomcat / eclipse部署webapp [英] 404 with tomcat / eclipse deployed webapp

查看:359
本文介绍了404用tomcat / eclipse部署webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是令人难以置信的令人沮丧的。

This is incredibly frustrating.

我已经在Eclipse / tomcat中部署了一个webapp进行调试。我选择了使用Tomcat安装单选按钮来使用我自己的服务器。一切都好但是当我尝试访问我的网络应用程序时,我会收到404错误。我可以看到它已经部署在wptwebapps文件夹中。日志只显示404.我可以访问管理器应用程序,它显示我的网络应用程序已部署。

I have deployed a webapp to debug in Eclipse / tomcat. I have the "Use Tomcat installation" radio button selected to use my own server. Thats all fine. But when I try to access my web app, I get a 404 error. I can see that it has been deployed in the wptwebapps folder. Logs show nothing but 404. I can access the manager application just fine, and it shows my web app is deployed.

我完成了干净/重新发布,重新添加,一遍又一遍。同样的问题。

Ive done the clean/republish, re-add, etc...over and over. same issue.

除此之外,如果我通过manager应用程序手动部署war文件,那么它会部署,并且应用程序运行没有任何问题(尽管它部署到'webapps'而不是'wptwebapps')。可能是什么问题?

On top of that, if I deploy the war file manually through the manager app, it deploys, and the app runs with no issue (although it deploys to 'webapps' instead of 'wptwebapps'). What could be the problem?

推荐答案

你应该去服务器选项卡,点击右边的属性,按开关位置按钮。之后,您再次进行测试。
让我知道如果它有效。

You should go to the "Servers" tab and click-right on the "properties" and press the button "Switch Location". After that you make the test again. Let me know if it works.

这篇关于404用tomcat / eclipse部署webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆