Add Tomcat Manager GUI to Tomcat Server

After installing the Tomcat server, you need a GUI of Manager to manage the Tomcat Server. First, go to this directory C:\xampp\tomcat\conf\, open the file tomcat-users.xml in your favorite text editor (I’m using Notepad++).

Add the following lines inside the parent element <tomcat-users>

<role rolename=”manager”/>
<user username=”tomcatadmin” password=”s3cret” roles=”manager”/>

After adding the XML element above, your tomcat-users.xml will look like this.

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="xampp" password="xampp" roles="admin,manager"/>
<role rolename="manager"/>
<user username="tomcatadmin" password="s3cret" roles="manager"/>
</tomcat-users>

Now go to the Xampp Control Panel to restart the Tomcat server, then click on Admin button of Tomcat server. Type the username as tomcatadmin, password as s3cret. The manager of Tomcat will display.