1: The reason is very simple, that is, when I update the deployment of the war package, I deleted all except the root tomcat/webapps/
So, the Manager app 404 error, or possibly, you webapps/web-inf/web.xml was deleted. Copy the manager directory from another Tomcat.
2: Below is the configuration of my tomcat-users.xml
<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<role rolename= "Manager-gui"/>
<user username= "Tomcat" password= "Your password" roles= "Tomcat"/>
<user username= "Both" password= "Your password" roles= "Tomcat,role1"/>
<user username= "Role1" password= "Your password" roles= "Role1"/>
<user username= "Manager" password= "Your password" roles= "Manager-gui"/>
This article is from the "Breeze" blog, be sure to keep this source http://358778493.blog.51cto.com/11386071/1864779
About the Tomcat Manager app 404 error Resolution