Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Can't Login to Tomcat 7 Manager  (Read 4442 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Can't Login to Tomcat 7 Manager
« on: June 21, 2014, 10:54:45 pm »
If a customer cannot login to a Tomcat 7 manager area, it might be because the manager role is supposed to be split into four different roles and then added under the root username in /home/USERNAME/tomcat/conf/tomcat-users.xml . The file should look like this:

<?xml version='1.0' encoding='utf-8'?>
  <tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>

  <role rolename="tomcat"/>
  <role rolename="admin"/>
  <role rolename="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="root" password="PASSWORD" roles="admin,manager-gui,manager-script,manager-jmx,manager-status"/>
  <user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

Once the file has been updated to reflect the above, everything should work properly.