Setting up and running the Tomcat Manager
search cancel

Setting up and running the Tomcat Manager


Article ID: 12737


Updated On:


Output Management Web Viewer


After installing OM Web Viewer, you may need to run the Tomcat manager to confirm a successful Web Application Server (WAS) implementation. How do I set up and run the Tomcat Manager?


 Output Management Web Viewer 12.1
Apache Tomcat®


To use Tomcat's administration and management tools, you need to create a user with "admin" and "manager" roles. You can do this by editing the tomcat-users.xml file in the conf directory under the Tomcat directory using a text editor:
  1. Ensure Tomcat is running
  2. Delete the lines with comments around the last paragraph with the roles
  3. Add the following entries to create the "admin" and "manager" roles:
    • <role rolename="manager"/>
    • <role rolename="admin"/>
  4. Add the following entry to create the "admin" user:
    • <user username="admin" password="myAdminPwd" fullName="Administrator" roles="admin,manager"/>
  5. Save and close the file
  6. Restart Tomcat
  7. Log in to the Tomcat manager at http://localhost:8080/manager/html using the userid and password you added to the tomcat-users.xml)

  8. You should consider undoing this after we are done with the Tomcat manager as you might not need it regularly and leaving that section uncommented may get you tagged with a vulnerability.