Umair Umair - 1 year ago 367
Java Question

403 access denied on tomcat 7.0.42

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"?>
<role rolename="manager-script"/>
<user username="admin" password="admin" roles="manager-script" />

Answer Source

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.

  <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"/>

some information for you about roles from

  • manager-gui — Access to the HTML interface.
  • manager-status — Access to the "Server Status" page only.
  • manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.
  • manager-jmx — Access to JMX proxy interface and to the "Server Status" page.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download