AbdulAziz
AbdulAziz

Reputation: 6298

Making / Deploying War file from Eclipse web project

I don't know if some one asked this but I have a problem that I am working on this tutorial Hello World Example with annotation driven Spring 3 MVC in Eclipse .Now I am very embarrassed to say that how can I make war file to deploy on tomcat. Please guide me in this regard. Thank you

P.S: Just to inform you that I have Tomcat 6.0 and eclipse indigo 3.7

Upvotes: 4

Views: 13873

Answers (2)

user1190541
user1190541

Reputation:

I would recommend using Apache Maven as it will help you much as you project will get bigger and your will have a lot of dependencies. You can try it as Eclipse plugin (m2eclipse) or use it from command line.

Upvotes: 0

Andrea Colleoni
Andrea Colleoni

Reputation: 6021

You have many options depending on the environment you're using; the more simple ways can be:

  • for testing purpose you can reference a Tomcat installation inside your Eclipse in the Severs tab of the J2EE perspective and add your Dynamic Web Project to it; then you can control (start/stop/debug) your server from Eclipse
  • to build a war to deploy, you can right click the Dynamic Web Project and choose Export War File

Upvotes: 7

Related Questions