Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed tomcat6 on lucid using apt-get. All working.

I installed tomcat-admin. Not working.

I amended the /etc/tomcat6/tomcat-users.xml file to uncomment the users and roles (from the default) to be like the following:

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

This still didn't work.

Then from the following page I added.

<role rolename="manager"/>
<user username="admin" password="secret" roles="manager"/>

then it worked.

Why doesn't this occur as part of the install? (Why isn't this in the Ubuntu Manual on Tomcat ?)

share|improve this question
    
The Ubuntu Manual has: "Access to the manager application is protected by default: you need to define a user with the role "manager" in /etc/tomcat6/tomcat-users.xml before you can access it." I stumbled upon this myself several times, i thing many people are missing it... –  tohuwawohu Oct 20 '11 at 9:08

1 Answer 1

up vote 1 down vote accepted

Ansered in the comments.

The Ubuntu Manual has: "Access to the manager application is protected by default: you need to define a user with the role "manager" in /etc/tomcat6/tomcat-users.xml before you can access it." I stumbled upon this myself several times, i thing many people are missing it...

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.