- Setup Apache Tomcat on your Sys.
- Usually all you have to do is download the current version, unzip it, and start it by running
apache-tomcat-folder\bin\startup.bat
. (You can also donwload an installer and set it up as windows service. Check this link for more details). - Make sure you test it before continuing (open its address on a browser, something like
http://yourinstaceaddress.com:8080/
).
- Usually all you have to do is download the current version, unzip it, and start it by running
- Export your web application
.war
file- In Eclipse, right click on a Web project and select Export. Then select WAR file in the Export window and then select Next. Choose the project, the
.war
file name and folder to export. More detailed explanation can be found here and here (with pictures).
- In Eclipse, right click on a Web project and select Export. Then select WAR file in the Export window and then select Next. Choose the project, the
- Deploy the
.war
file to your Tomcat Server- The, by far, simplest way to do this is to place your
.war
(saymyapp.war
) file in yourapache-tomcat-folder\webapps\
folder.
- The, by far, simplest way to do this is to place your
- Test your web app
- Visit the url: say your
.war
's name wasmyapp.war
. You should visithttp://yourinstaceaddress.com:8080/myapp
- Visit the url: say your
Tuesday, 8 July 2014
How to deploy a Eclipse Java Web Dynamic Project on TomCat
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment