1

I'm running a local Tomcat 6.0 server. I can get to the main admin page from a browser. I've created a user for the Tomcat Application Manager by configuring tomcat-users.xml like so:

<tomcat-users>
      <role rolename="manager-gui" /> 
      <user username="myUsername" password="myPswd" roles="manager-gui" /> 
</tomcat-users>

When I type a cmd for TAM e.g. http://localhost:8080/manager/list, it prompts for credentials w/ the Authentication Required dialog. I enter myUsername/myPswd, and the dialog just re-prompts for credentials again.

What am I missing here?

vbence
  • 20,084
  • 9
  • 69
  • 118
MebAlone
  • 547
  • 1
  • 5
  • 11

2 Answers2

2

The roles required to use the Manager application in Tomcat 7 were changed from the single manager role in Tomcat 6 to the following four roles:

  • manager-gui - allows access to the HTML GUI and the status pages
  • manager-script - allows access to the text interface and the status
  • pages manager-jmx - allows access to the JMX proxy and the status
  • pages manager-status - allows access to the status pages only

If you are using Tomcat 6 you need to change the role to "manager".

Chris
  • 7,864
  • 1
  • 27
  • 38
1

I had a problem like this too, I don't know if its a problem with my version of the manager/tomcat or if I have a newer tomcat then manager version but I've found that I have to use the legacy role 'manager' despite being on 6.0.x.

  <role rolename="manager" /> 
  <user username="myUsername" password="myPswd" roles="manager" /> 
Mike K.
  • 3,751
  • 28
  • 41