title: Set the correct username and password with the "manager-script" role in the Tomcat
body: <p>I know this has been <a href="https://stackoverflow.com/questions/16712744/why-am-i-getting-the-deployment-error">asked many before</a>. But I have already placed my user to role "manager-script".</p>
  
  <p>I keep getting this when trying to deploy:</p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/3St2c.png" alt="enter image description here"></p>
  
  <p>My <code>D:\DEV\apache-tomcat-7.0.47\conf\tomcat-users.xml</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;tomcat-users&gt;
      &lt;role rolename="manager-script"/&gt;
      &lt;user username="user" password="user" roles="manager-script"/&gt;
  &lt;/tomcat-users&gt;
  </code></pre>
  
  <p>The server starts just fine without errors from netbeans but when I go to deploy, it keep asking me for the credentials that has "manager-script".</p>
  
  <p><img src="https://i.stack.imgur.com/EYaGN.png" alt="enter image description here"></p>
  
  <p>What I have tried:</p>
  
  <ol>
  <li>Removing all other Apache installs/directories.</li>
  <li>Rebooting.</li>
  <li>Double, triple and quadruple checking the username and password
  (user@user).</li>
  </ol>
  
  <h1>What am I doing wrong?</h1>