Table of Contents

About

How to logon on tomcat

How to

For security reasons, using the administration webapp is restricted to users with role “admin”. The manager webapp is restricted to users with role “manager”. Users are defined in CATALINA_HOME/conf/tomcat-users.xml.

Change it for instance :

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="admin" password="pass" roles="admin,manager"/>
</tomcat-users>
</xml>
  • Restart the Apache Tomcat Service
  • Call the page Tomcat Home Page http://host:port

Tomcat Administration Link

  • Then you can log in the Tomcat Manager with the credential admin/pass.