Tomcat manager does not ask to login
<p>I have Tomcat v9 installed in Linux. When I try to access Manager App - it does not ask for any login, and shows an 403 Access Denied error in the next page.</p>

<p>The tomcat-users.xml file shows the users entry as below- </p>

<blockquote>
  <p></p>
</blockquote>

<pre><code>&lt;tomcat-users 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"
              version="1.0"&gt;

  &lt;role rolename="manager-gui"/&gt;
  &lt;role rolename="admin-gui"/&gt;
  &lt;role rolename="manager-script"/&gt;
  &lt;role rolename="manager-jmx"/&gt;
  &lt;role rolename="manager-status"/&gt;
  &lt;role rolename="tomcat"/&gt;
  &lt;role rolename="role1"/&gt;
  &lt;user username="admin" password="admin" roles="admin-gui,manager-gui"/&gt;
  &lt;user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/&gt;
  &lt;user username="both" password="both" roles="tomcat,role1"/&gt;
  &lt;user username="role1" password="role1" roles="role1"/&gt;

&lt;/tomcat-users&gt;
</code></pre>

<p>Also from server.xml, the tomcat-users.xml file is mapped properly.</p>

<p>></p>

<pre><code>   &lt;GlobalNamingResources&gt;
    &lt;!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    --&gt;
    &lt;Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" /&gt;
  &lt;/GlobalNamingResources&gt;
</code></pre>

<p>I dont understand why it is not asking me to login. Until it does so, I can not validate its getting proper role or not. What may be the issue?</p>