I am having error 403 access denied on tomcat 7.0.42 while accessing Tomcat Manager App.
This is what I have in tomcat-user.xml file. I have tried changing roles over and over but did not work.
Note: - I start/stop tomcat from NetBeans 7.3.1
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="manager-script"/>
<user username="admin" password="admin" roles="manager-script" />
</tomcat-users>
Though the answer is already the correct answer, I think maybe someone will be confused about the usage of "manager-script".
The "manager-script" is for accessing the Tomcat Manager API without using Web pages.
For instance, the command below is for requesting undeploy function instead of clicking the undeploy button on Tomcat Manager web app.
curl http://localhost:8080/manager/text/undeploy?path=/app_name
Remove the manager-script and add "manager-gui,manager-status".
To access the HTML interface, you need to have the manager-gui role, but you must NOT have the manager-script or manager-jmx roles.
<tomcat-users>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="tomcat" password="tomcat" roles="manager-gui,manager-status"/>
</tomcat-users>
some information for you about roles from http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html
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