Tomcat 7 manager /text interface does not work

John Martin picture John Martin · Mar 5, 2015 · Viewed 7.3k times · Source

I've just setup a new Tomcat 7.0.59 installation and added the Tomcat Manager application to web-apps. I'm able to login and use the web interface to manager via http://host:8080/manager/html as I could with Tomcat 6. The Tomcat 7 documentation (http://tomcat.apache.org/migration-7.html#Manager_application) states:

Note that the URL for the text interface has changed from "" to "/text"

The problem that I have is that using the /text URI attribute doesn't work.

Is there some configuration setup that I need to do in order to get this to work properly?

Answer

James Newman picture James Newman · Mar 6, 2015

Edit your tomcat-users.xml to have a user with the manager-script role. It should look something like this:

<tomcat-users>
    <role rolename="manager-gui"/>
    <role rolename="manager-script"/>
    <user username="<username>" password="<password>" roles="manager-gui,manager-script"/>
</tomcat-users>

On my ubuntu system, the file is located in /etc/tomcat7/tomcat-users.xml