How do I set up and run the Tomcat Manager?

Document ID : KB000012737
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

After installing Web Viewer, you may need to run the Tomcat manager to confirm a successful Web Application Server (WAS) implementation.

Question:

How do I set up and run the Tomcat Manager?

Answer:

1) Tomcat must be up and running 

2) Edit the tomcat-users.xml file which is in the conf directory under the Tomcat directory 

3) Remove the comments around the last paragraph with the roles 
<!-- 

--> 

4) Add at the bottom after the other roles (using your own username and password) 

<role rolename="manager-gui"/> 
<user username="tomcat" password="s3cret" roles="manager-gui"/> 

5) Save 

6) Bring up the Tomcat manager at this location and log in using the userid and password 
you added to the tomcat-users.xml 

http://localhost:8080/manager/html 

and log in 

7) You may want to/should undo this after we are done with the Tomcat manager as you will not 
need it regularly and leaving that section uncommented may get you tagged with a vulnerability.

Additional Information:

It bears repeating, you should undo this after we are done with the Tomcat Manager as you will not 

need it regularly and leaving that section uncommented may be tagged in a vulnerability scan.