Set the correct username and password with the "manager-script" role in the Tomcat

same problem.. fixéd it by adding:

<tomcat-users> <role rolename="manager-script"/> <user username="user" password="user" roles="manager-script"/> </tomcat-users>

to C:\Program files\apache-tomcat-7.0.47\conf\tomcat-users.xml

and remember to run netbeans as administrator.


Hello the solution is the below :

  1. remove netbeans and tomcat
  2. remove the cash directory c:\users{youruser}.netbeans\
  3. remove the netbeans folder in : C:\Users{youruser}\AppData\Roaming\netbeans
  4. re-install netbeans and tomcat
  5. add your application i will works

tested !! :D


Short answer - don't know. Your tomcat-users.xml looks right. Things to check:

  1. Is the Manager app deployed?
  2. Has the web.xml used by the Manager (where manager-script is used) been changed?
  3. Use JMX to confirm that the users and roles are read correctly.
  4. Has the Realm been changed in server.xml?