That's how I used to configure manager and admin:
<?xml version= "1.0" encoding= "UTF-8"? ><tomcat-users version= "1.0" xmlns= "Http://tomcat.apache.org/xml" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://tomcat.apache.org/xml Tomcat-users.xsd "><role rolename=" Manager-gui "/><role rolename=" Admin-gui "/><user password=" 123456 "roles=" Manager-gui "Username=" Tomcat "/><user password=" 123456 "roles=" Admin-gui "username=" Tomcat "/ ></tomcat-users>
Today under the tomcat8.0.17 to configure, unexpectedly found such a son, either manager can not admin, or admin line manager not, toss for a while, read the official documents, found to be configured like this:
<?xml version= "1.0" encoding= "UTF-8"? ><tomcat-users version= "1.0" xmlns= "Http://tomcat.apache.org/xml" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://tomcat.apache.org/xml Tomcat-users.xsd "><role rolename=" Manager-gui "/><role rolename=" Admin-gui "/><user password=" 123456 "roles=" Manager-gui,admin-gui "Username=" Tomcat "/></tomcat-users>
This configuration allows the manager and admin to take effect at the same time.
Tomcat Configuration Record