Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just installed tomcat 6 in Debian 6 with the apt-get:

apt-get install tomcat6 tomcat6-common tomcat6-docs tomcat6-admin tomcat6-user

After that, http://localhost:8080 is accessible without any problems, also the jsp and servlet examples run as expected.

To be able to access the /manager/html area, I edited the file $CATALINA_HOME/skel/conf/tomcat-users.xml, now it looks like this:

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

After that, I restarted tomcat with:

/etc/init.d/tomcat6

When I try to access http://localhost:8080/manager/html and enter "tomcat" : "secret" into the htaccess-box, I get "Access denied". Why this? Is there anything else I have to do?

share|improve this question

1 Answer 1

up vote 6 down vote accepted
+50

The role you need to access WEB admin interface is called manager-gui. It is sufficient to add these two lines to /etc/tomcat6/tomcat-users.xml (within tomcat-users tag):

<role rolename="manager-gui"/>
<user username="tomcat" password="secret" roles="manager-gui"/>

and restart the server.

share|improve this answer
    
Thank you for pointing me to the correct file! Now it is working –  strauberry Jun 2 '11 at 17:59
1  
@strauberry: although not question related, i'd also suggest installing tomcat native library (it will speed-up it noticeably) if you haven't done it already (just apt-get install libtcnative-1, tomcat will grab it automatically upon restart). –  barti_ddu Jun 2 '11 at 18:18
    
Thank you very much! I'll do that –  strauberry Jun 2 '11 at 18:55

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.