I ran a Web application project. I kept getting a message saying:
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.
I checked the tomcat-users.xml in the “conf” folder of Tomcat, and added the 2 lines as below:
<role rolename=”manager-script”/>
<user username=”user” password=”user” roles=”manager-script”/>
It still didn’t work.
Late on, I found I made two mistakes:
1) I changed the wrong tomcat-users.xml. I had two Tomcat in my computer.
2) I didn’t remove this: <!– –>. Within this, everything is ignored.
Now, it works :)))))))))))
Thank you, this saved me some time with my own Netbeans projects 🙂