title: Cannot access to Apache Tomcat/8.0.32 Manager App on OSX
body: <p>I'm having a problem accessing to tomcat manager app on localhost. As I installed tomcat to my mac, it didn't ask to set username or password (as it does on windows). But if I try to login to manager app it requires both of them.</p>
  
  <p>What I've tried so far:</p>
  
  <p>1) I took the username and password from tomcat-user.xml and tried to login</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><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;!--
    NOTE:  By default, no user is included in the "manager-gui" role required
    to operate the "/manager/html" web application.  If you wish to use this app,
    you must define such a user - the username and password are arbitrary.
  --&gt;
  &lt;!--
    NOTE:  The sample user and role entries below are wrapped in a comment
    and thus are ignored when reading this file. Do not forget to remove
    &lt;!.. ..&gt; that surrounds them.
  --&gt;
  &lt;!--
    &lt;role rolename="tomcat"/&gt;
    &lt;role rolename="role1"/&gt;
    &lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;
    &lt;user username="both" password="tomcat" roles="tomcat,role1"/&gt;
    &lt;user username="role1" password="tomcat" roles="role1"/&gt;
  --&gt;
  &lt;/tomcat-users&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>2) Then I uncommented role and user tags (by default they are commented) and tried to login</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><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;!--
    NOTE:  By default, no user is included in the "manager-gui" role required
    to operate the "/manager/html" web application.  If you wish to use this app,
    you must define such a user - the username and password are arbitrary.
  --&gt;
  &lt;!--
    NOTE:  The sample user and role entries below are wrapped in a comment
    and thus are ignored when reading this file. Do not forget to remove
    &lt;!.. ..&gt; that surrounds them.
  --&gt;
  
    &lt;role rolename="tomcat"/&gt;
    &lt;role rolename="role1"/&gt;
    &lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;
    &lt;user username="both" password="tomcat" roles="tomcat,role1"/&gt;
    &lt;user username="role1" password="tomcat" roles="role1"/&gt;
  
  &lt;/tomcat-users&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>3) Then I added some extra lines to xml, that are described here <a href="https://wiki.apache.org/tomcat/TomcatOnMacOS" rel="nofollow">https://wiki.apache.org/tomcat/TomcatOnMacOS</a> under step 3 and tried to login</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><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;!--
    NOTE:  By default, no user is included in the "manager-gui" role required
    to operate the "/manager/html" web application.  If you wish to use this app,
    you must define such a user - the username and password are arbitrary.
  --&gt;
  &lt;!--
    NOTE:  The sample user and role entries below are wrapped in a comment
    and thus are ignored when reading this file. Do not forget to remove
    &lt;!.. ..&gt; that surrounds them.
  --&gt;
  
    &lt;role rolename="tomcat"/&gt;
    &lt;role rolename="role1"/&gt;
    &lt;role rolename="manager"/&gt;
    &lt;role rolename="admin"/&gt;
    &lt;user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/&gt;
    &lt;user username="both" password="tomcat" roles="tomcat,role1"/&gt;
    &lt;user username="role1" password="tomcat" roles="role1"/&gt;
  
  &lt;/tomcat-users&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>but so far nothing has helped. Any suggestions how to solve this problem?</p>