How to deploy war file in Tomcat
As I discussed earlier about Java WAR file and how to create war file in CMD and Eclipse IDE in previous sections. In this section we will discuss about how to deploy war file in Tomcat.
Steps to deploy the war file
Step 1: Just Copy the war file and paste it into the apache-tomcat-7.0.59\webapps folder.
Step 2: Start the tomcat server. To start the tomcat, Go to the C:\apache-tomcat-7.0.59\bin and click on startup.bat.
Step 2: Type the war file name without extension after the host name and port number. In this case its localhost and port number is 8081.
URL of war file
Note: Note Port number can be vary from user to user (default port number of Tomcat is 8080).
WAR file has been successfully deployed. You can see result in the browser.