Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Disclaimer: I'm not a server admin.

I recently put up tomcat on my home server and I intend to link it to my apache2 service. My issue here is that I can't even get manager as it seems that whenever i enable the tomcat-users.xml, tomcat will hang.

For my Debian server, the users file is expected in /etc/tomcat6/tomcat-users.xml. Prior to creating the file, tomcat responded as expected with the test page. Once I created the file, it stopped, and resumed to work when I removed it.

Testing through telnet confirmed my suspicions as it hung on GET / requests, though connected during that time.

My tomcat-users.xml file is as so ($user , and $password substituted)

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


<role rolename="manager"/>

<role rolename="admin"/>

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


This is a default tomcat6 installation, so why would this cause a hang? how can I resolve this?

The syntax and hanging has been resolved thanks to jmort253, however <domain>:<port>/manager/html is still unavailable. Is there something equally silly I'm missing here? the documentation points that the default package should have this stock.

share|improve this question
up vote 1 down vote accepted

Instead of dots, should those be quotes in rolename?

<role rolename="manager" />

Like above?

share|improve this answer
silly me, this was it. It still however doesn't allow me to reach the manager web app. – StudentKen Jan 18 '11 at 5:55
What's the error message? What's the path to the manager app on your computer, and what's the URL you're using to access it? – jmort253 Jan 18 '11 at 6:07
Typical 404, "The requested resource (/manager/html) is not available." – StudentKen Jan 18 '11 at 6:17
manager appears to be not included as webapps is located in /var/lib/tomcat/webapps which is only contains directory ROOT which itself only containing the default index.html. If this is not in the default package... where can I obtain this? – StudentKen Jan 18 '11 at 6:27
@Ken - Sometimes manager app isn't included in the webapps for security reasons. You may need to move the folder to your normal webapps folder. Also, check your server.xml to make sure your Host entry is pointing to the manager app. – jmort253 Jan 18 '11 at 7:13
<role rolename=.manager./> not this try this `<role rolename=manager/>`
share|improve this answer

Your Answer


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.