title: Tomcat 7 Manager - how to authenticate?
body: <p>I am trying to log in tomcat manager app but i cannot successfully create a login user in the tomcat-users.xml.
  The initial content was this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  --&gt;&lt;tomcat-users&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>
  
  <p>Reading <a href="http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html" rel="noreferrer">on the official page</a> i modified the file like this but with no result.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;tomcat-users&gt;
    &lt;role rolename="manager-gui"/&gt;
    &lt;role rolename="manager-status"/&gt;
    &lt;role rolename="manager-script"/&gt;
    &lt;role rolename="manager-jmx"/&gt;
    &lt;user username="admin" password="admin" roles="manager-gui"/&gt;
  &lt;/tomcat-users&gt;
  </code></pre>