1. Deploy the project under the Tomcat installation path WebApps (if reported 404, check if the app is deployed under Tomcat WebApps)
2, launch Tomcat success, http://127.0.0.1:8080 success, click the manager App, you need to enter the user name and password, input error, cancel, prompt 401
3, the solution, Tomcat installation path conf under the Tomcat-users.xml (release the file default configuration of the role, the user is not possible)
Add to:
<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<role rolename= "Manager"/>
<role rolename= "Manager-gui"/>
<role rolename= "admin"/>
<role rolename= "Admin-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "Manager-jmx"/>
<role rolename= "Manager-status"/>
<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= "admin" roles= "Tomcat,role1"/>
<user username= "Tomcat" password= "roles=" Manager-gui "/>
<user username= "Tomcat" password= "Tomcat" roles= "Admin-gui,admin,manager-gui,manager,manager-script, Manager-jmx,manager-status "/>
See figure:
4. Be aware that you must restart Tomcat after modifying the XML file
Note: This article refers to http://bbs.csdn.net/topics/391935818
Tomcat login page successfully clicked Manager App 401 and other issues