Tomcat login page successfully clicked Manager App 401 and other issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.