Aly Martin
Aly Martin

Reputation: 113

Tomcat 7 manager /text interface does not work

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?

Upvotes: 0

Views: 7973

Answers (3)

Tấn Tài Trần
Tấn Tài Trần

Reputation: 41

I think the root cause is server refuse maven's write action, Here my solution:

<user username="xxx" password="xxx" roles="manager-gui,manager-script,manager-jmx,manager-status"/>

Upvotes: 0

Aly Martin
Aly Martin

Reputation: 113

Ok, so the recommendations for the manager-script role were important to solving my issue and for that I thank dnault and James for your feedback as I missed that in the documentation.

The biggest issue for the /manager/text not working was a bonehead mistake on my part. We breakout the catalina_home directory from the binary distribution of Tomcat. If I need manager for an installation, I create a symlink from the catalina_home/web-apps directory to the distribution web-apps/manager directory. In doing so, I linked it to the Tomcat 6 distro instead of Tomcat 7.

Changing the symlink and adding the manager-script solved my issue.

Upvotes: 0

James Newman
James Newman

Reputation: 161

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

Upvotes: 3

Related Questions