Access to Tomcat server has not been authorized

Deb J picture Deb J · Apr 20, 2012 · Viewed 41.3k times · Source

I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error :

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.

I have added a role with name "manager-script" in conf/tomcat-user.xml but where is my Server Manager? I did'nt find it. Please help me.
thanks...

Answer

fiberair picture fiberair · May 16, 2013
  1. Add below lines in tomcat-users.xml.

     <user username="admin" password="password" roles="tomcat,role1,manager-script,manager-gui"/
    
  2. Restart tomcat/service.