1. Download apache-tomcat-7.0.28 or the latest version from :
2. Place the downloaded zip file in any location and uzip it, in my case I placed it in the location shown below.
3. Navigate to the bin folder as shown below
4. Launch the startup.bat file (for windows) and you should get a screen as shown below:

Tomcat startup screen

5. From the browser, input the url:

A screen like this should appear:

Tomcat Manager
6. To deploy a .war file, click the Manager App button as shown by the arrow above but you would need to set up a username and password for the manager.
7a. To set the username and password for the manager, navigate to tomcat-users file as shown in the link below:

b.Paste the line below where you have a commented list of user tags. You can also uncomment the tags:
<role rolename=”manager-gui”/>
<user username=”tomcat” password=”s3cret” roles=”manager-gui”/>
Here is a full content of the role tags aspect of tomcat-users.xml
<role rolename=”tomcat”/>
<role rolename=”role1″/>
<user username=”tomcat” password=”tomcat” roles=”tomcat”/>
<user username=”both” password=”tomcat” roles=”tomcat,role1″/>
<user username=”role1″ password=”tomcat” roles=”role1″/>
<role rolename=”manager-gui”/>
<user username=”tomcat” password=”s3cret” roles=”manager-gui”/>

8. Restart Tomcat and input the link below in the browser:

9. Click on the ‘Choose file’ Button This would manage the upload of your war file

Deploying war file
10. To deploy a war file, click the Choose file button as shown above. This will prompt you to upload the war file you want to deploy.

11. Click the deploy button
Your war file will be deployed and can be referenced from the browser using:


Your comments and observations will be highly appreciated.



One thought on “Installing and Deploying a war file in tomcat

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s