Tomcat manager is essential for administrative tasks. However, by default, it’s not functional. There are few things you must do for tomcat manager to work. Let’s see how… As a best practice – take a backup of configuration file before modification so you can roll-back when something goes wrong.

Tomcat 6.x/7.x

Login to Tomcat server Go to installation directory and then conf folder Open the tomcat-users.xml and add the following above  syntax

Note: change the password from tomcat to something complex.

Restart Tomcat and try to log in

It should be successful.

Tomcat 8.x/9.x

By default, Tomcat 8 manager is configured to be accessed from the same server where it’s installed. If you access manager, you will get 403 error.

For a manager to be accessible from any host/IP, you need to do the following.

Go to Tomcat installation and then webapps/manager/META-INF Open context.xml and comment Valve section as below

Ex:

Save the file Next, go to conf folder and open tomcat-users.xml to adding the following above  syntax

Save the configuration file and restart the Tomcat

Login should be ok now. I hope this helps. If you are new to Apache Tomcat or interested in learning more about administration, then I would recommend this online course.

Unable to Access Tomcat Manager 6  7  8 and 9 - 37Unable to Access Tomcat Manager 6  7  8 and 9 - 30Unable to Access Tomcat Manager 6  7  8 and 9 - 50Unable to Access Tomcat Manager 6  7  8 and 9 - 88Unable to Access Tomcat Manager 6  7  8 and 9 - 9Unable to Access Tomcat Manager 6  7  8 and 9 - 30Unable to Access Tomcat Manager 6  7  8 and 9 - 42Unable to Access Tomcat Manager 6  7  8 and 9 - 32Unable to Access Tomcat Manager 6  7  8 and 9 - 51Unable to Access Tomcat Manager 6  7  8 and 9 - 97Unable to Access Tomcat Manager 6  7  8 and 9 - 25Unable to Access Tomcat Manager 6  7  8 and 9 - 84Unable to Access Tomcat Manager 6  7  8 and 9 - 37Unable to Access Tomcat Manager 6  7  8 and 9 - 9Unable to Access Tomcat Manager 6  7  8 and 9 - 41Unable to Access Tomcat Manager 6  7  8 and 9 - 45Unable to Access Tomcat Manager 6  7  8 and 9 - 52Unable to Access Tomcat Manager 6  7  8 and 9 - 9Unable to Access Tomcat Manager 6  7  8 and 9 - 93Unable to Access Tomcat Manager 6  7  8 and 9 - 19Unable to Access Tomcat Manager 6  7  8 and 9 - 99Unable to Access Tomcat Manager 6  7  8 and 9 - 62Unable to Access Tomcat Manager 6  7  8 and 9 - 40Unable to Access Tomcat Manager 6  7  8 and 9 - 49