title: 401 Unauthorized error while logging in Manager-App of Tomcat
body: <p>I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7. Here is the error I am getting: <a href="http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff">http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff</a></p>
  
  <pre><code>401 Unauthorized
  
  You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.
  
  For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.
  
  &lt;role rolename="manager-gui"/&gt;
  &lt;user username="tomcat" password="s3cret" roles="manager-gui"/&gt;
  </code></pre>
  
  <p>I have added this in my tomcat-users.xml, still its not taking the same username/password.</p>
  
  <pre><code>&lt;tomcat-users&gt;
  &lt;role rolename="manager-gui"/&gt;
  &lt;user name="tomcat" password="s3cret" roles="standard,manager-gui"/&gt;
  &lt;/tomcat-users&gt;
  </code></pre>