Admin management is added for Tomcat and management users are configured. The Management page is displayed after http: // localhost: 8080/admin. After you enter the user name and password, the result page is changed
HTTP
Status 403-access to the requested resource has been denied
$ Tomcat_home/webapps/manager/WEB-INF/Web. xml
1. Add <web-app> and </Web-app>
<Security-constraint>
<Web-resource-collection>
<Web-resource-Name> entire
Application </Web-resource-Name>
<URL-pattern>/* </url-pattern>
</Web-resource-collection>
<Auth-constraint>
<! --
Note: this role is not present in the default users file -->
<Role-Name> Manager </role-Name>
</Auth-constraint>
</Security-constraint>
<! -- Define the login configuration
For this application -->
<Login-config>
<Auth-method> basic </auth-method>
<Realm-Name> Test
Access Control </realm-Name>
</Login-config>
// If it exists, you do not need to add it. Note the following:
2. Then add in $ tomcat_home/CONF/tomcat-users.xml
<Tomcat-users>
<Role rolename = "manager"/>
<User Username = "admin" Password = "admin" roles = "manager"/>
</Tomcat-users>
Roles names correspond to those in Web. xml.