Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Im having trouble accessing my tomcat admin panel. Ive configured everything correctly as far as i can see (adding an admin/manager user to tomcat-users.xml). I can log into manager/html and enter my credentials, then get presented with a 403 error. Ive got the tomcat7-admin package installed on my system and tomcat is installed to the default location. Any ideas where im going wrong?

tomcat-users.xml:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user name="admin" password="adminpass" roles="manager,admin"/>
</tomcat-users>

If it helps, I'm using Ubuntu 11.10 x64.

share|improve this question
    
Have you tried looking at the logs? –  Andrey Nov 7 '11 at 20:44

1 Answer 1

I think the field is "username" not name. So it should look like the entry below:

<user username="admin" password="adminpass" roles="manager,admin" />

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.