title: Can't access Manager-app in Tomcat 8
body: <p>I read many similar problems here, but whatever I do, I can't login to manager app. What I have done.<br/><br/>
   1. I edited the <code>tomcat-users.xml</code> by adding</p>
  
  <pre><code>  &lt;role rolename="manager-gui"/&gt;
    &lt;role rolename="manager-script"/&gt;
    &lt;role rolename="manager-jmx"/&gt;
    &lt;role rolename="manager-status"/&gt;
    &lt;role rolename="admin-gui"/&gt;
    &lt;role rolename="admin-script"/&gt;
    &lt;user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/&gt;
  </code></pre>
  
  <ol start="2">
  <li>I started Tomcat (V.8) with Netbeans<br/></li>
  <li>I went to localhost:8084 (netbeans set the port to 8084) and I clicked "manager app".<br/></li>
  <li>In the prompted window, I put admin and admin and it doesn't login.<br/><br/></li>
  </ol>
  
  <p>In the properties of the server in Netbeans, there are different credentials. I put the same to both of them (to tomcat-users.xml and there in Netbeans) and still nothing happens.<br/><strong>Every time I make a change, I always restart the Tomcat</strong> (no error occurs).<br/><br/><strong>EDIT</strong> <br/> When I try to run my application (the default one, when you create a project in Netbeans), I also can't login, so this messages comes up <code>Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager.
  See the server log for details.</code> <br/>However I have added the above in the tomcat-users.xml ...</p>