如何在Eclipse中将我的应用程序添加到Tomcat? [英] How can I add my application to Tomcat in Eclipse?

查看:355
本文介绍了如何在Eclipse中将我的应用程序添加到Tomcat?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Maven构建的网络应用程序。
大多数时候,我使用Intellij IDEA构建了应用程序,但现在我想在Eclipse中导入应用程序,以便在此IDE中查看到某些内容。



之后我在Eclipse中添加了应用程序,但是当我尝试将应用程序添加到服务器(tomcat)时,我收到:

 没有可以从服务器添加或删除的资源

解决方案?

解决方案

您需要该项目才能拥有Eclipse动态Web模块方面。您可以尝试通过项目属性对话框来查看项目构面,然后单击相应的复选框。这可能不是可用的,所以你可能需要做下一件事。



创建项目的备份,并按照 dzone.com的路线。这将允许您通过eclipse .project文件修改项目构面。



请记住,一旦添加了这些方面,您就无法通过Eclipse更改它们。一定要确保你有一个备份开始之前。


I have a web app built with Maven. Most of the time, I built the application using Intellij IDEA, but now I want to import the application in Eclipse to see something in this IDE.

After mvn eclipse:eclipse, I add in Eclipse the app, but when I try to add the app to the server (tomcat), I receive:

There are no resources that can be added or removed from the server

Solutions?

解决方案

You need the project to have a Eclipse Dynamic Web Module facet. You can try doing this via the project properties dialog and looking at project facets, then clicking the appropriate check box. This may not be available however, so you may need to do the next thing.

Create a backup of your project and follow the directions at dzone.com. This'll allow you to modify the project facets via your eclipse .project file.

Keep in mind, once you add those facets, you cannot change them back via Eclipse. Definitely make sure you have a backup before starting.

这篇关于如何在Eclipse中将我的应用程序添加到Tomcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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