Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed Ubuntu 10.04 LTS Server with LAMP support. Tomcat6 seems to run ok. But, I am unable to get into the manager-webapp... I've updated the tomcat-users.xml file:

<?xml version='1.0' encoding='utf-8'?>


  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat,manager,admin"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="admin" password="admin" roles="manager,admin"/>


But, no matter what I try, it keeps rejecting my username/password combo.

What might I be missing?

share|improve this question

It looks like you've done what I did - put your own roles into the example section. The problem (for me at least) was that the example section is commented out. Make sure that you put your config outside the comment section.


share|improve this answer

In those cases usually you have to restart tomcat sudo /etc/init.d/tomcat6 restart will do,otherwise restart Ubuntu.And check if the role/user tags are inside the comments as @spinlock said.

share|improve this answer

Your Answer


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