Server Fault is a question and answer site for system and network administrators. 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

http://localhost:8080/manager/html gives a 404 error on apt-get install of tomcat6 (6.0.28 on JVM 1.6.0_20-b20 on 2.6.35-27-generic amd64).

http://localhost:8080/host-manager/html works. Lists one Host name, localhost.

Installed tomcat6-admin with apt-get.

$ ls dpkg -l | grep -i tomcat6-admin

ii tomcat6-admin 6.0.28-2ubuntu1.1 Servlet and JSP engine -- admin web applications

$ cat /usr/share/tomcat6/conf/tomcat-users.xml

<tomcat-users> <role rolename="admin"/> <role rolename="manager" /> <user username="tomcatuser" password="Password1" roles="admin,manager"/> </tomcat-users>

$ cat /usr/share/tomcat6/conf/Catalina/localhost/manager.xml

<Context path="/manager"
antiResourceLocking="false" privileged="true" />
<role name="manager" />
<user name="manager" password="Password1" roles="manager" />
<user name="tomcatuser" password="Password1" roles="manager" />

Those two files are the only documentation I've seen on how to setup the Manager webapp, and they seem to be compliant with the requirements.

However, the Tomcat XML parser doesn't seem to like that first tag in manager.xml: Mar 18, 2011 2:41:22 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor manager.xml org.xml.sax.SAXParseException; systemId: file:///etc/tomcat6/Catalina/localhost/manager.xml; lineNumber: 4; columnNumber: 2; The markup in the document following the root element must be well-formed.

share|improve this question
up vote 1 down vote accepted

Pursing the error log message from catalina.out, finally realized that I got confused when copy-pasting and put the <role> and <user> tags in both tomcat-users.xml and manager.xml. Those tags can only go in tomcat-users.xml. Once the tags were removed from manager.xml, the Manager began working.

To restate, the only contents of manager.xml are

<Context path="/manager"
antiResourceLocking="false" privileged="true" />

Would be nice to

  1. Have better error message in the parser
  2. Require the manager.xml to be well-formed
  3. not have the Manager serve a 404 error when a deployment fails.
share|improve this answer
Great, I'm been all over trying to solve this on my MintLinux 11 machine. – Alan B. Dee Sep 29 '11 at 22:12

The manager webapp isn't installed by default; have you run apt-get install tomcat6-admin?

share|improve this answer
Good question, sadly yes. Added clarification info to question. – Noel Mar 18 '11 at 15:07

Also check that your tomcat service is stuck in the background. Kill all stuck tomcat processes to make absolutely sure that your reconfiguration is being picked up.

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.