Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: sajugovind on June 21, 2014, 10:54:45 pm

Title: Can't Login to Tomcat 7 Manager
Post by: sajugovind 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.