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...
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.
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).
Add below lines in tomcat-users.xml
.
<user username="admin" password="password" roles="tomcat,role1,manager-script,manager-gui"/
Restart tomcat/service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With