How can I add my application to Tomcat in Eclipse?

Solution 1:

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.

Solution 2:

This step worked for me:

Right-Click on the Project Name, then Maven-->Update Project.. Click OK

After doing this I was able to see my project in Add/Remove Programs.

As mentioned somewhere else adding Eclipse WTP didn't do any good, however I performed the above step after I had already added Eclipse WTP, so I am guessing that may not be needed. This was done for Eclipse Juno.

Hope this helps someone.

Edited: You can follow this link as above mentioned I think might have needed WTP and that add a lot of other things into the workspace.

http://blog.teamextension.com/maven-as-eclipse-dynamic-web-module-556