Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access to Tomcat server has not been authorized

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...

like image 585
Deb J Avatar asked Apr 20 '12 06:04

Deb J


People also ask

Why is my tomcat not working?

Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.

How do I access tomcat admin?

Access the Apache Tomcat console by browsing to http://localhost:8080/ (if installed as a non-root user) or http://localhost/ (if installed as the root user).


1 Answers

  1. Add below lines in tomcat-users.xml.

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

like image 111
fiberair Avatar answered Sep 20 '22 18:09

fiberair