Tomcat administration Web application (Tomcat admin) configuration in tomcat6.x)

Source: Internet
Author: User
The binary core installation version after Tomcat 5.5 is no longer integrated with the Tomcat administration web application, and must be downloaded and installed independently. The administration Web Application of Tomcat 6.0.14 is only contained in the source package and does not have an independent installation package. After searching for materials and multiple practices, the administration Web Application of Tomcat 5.5.23 is successfully configured in Tomcat 6.0.14. Write out the configuration process. If any error occurs, please advise. The process is as follows:

1. Download the admin application of Tomcat 5.5.23:
: Http://apache.mirror.phpchina.com/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23-admin.zip

Decompress apache-tomcat-5.5.23-admin.zip and copy the conf and server folders to the Tomcat 6.0.14 installation directory.

3. Download Apache commons modeler, logging component, unzip the commons-modeler-XXX.jar, commons-logging-XXX.jar copy to Tomcat 6.0.14 installation directory under the lib directory.

4. Restart Tomcat and enter http: // 127.0.0.1: 8080/admin in the browser. If you can see the logon interface of Tomcat web server administration tool, the installation is successful. If the installation fails, you can view the log files in the logs directory under the Tomcat 6.0.14 installation directory, for example, admin.2007-12-14.log.

1. commons-modeler:
Http://commons.apache.org/downloads/download_modeler.cgi
Http://apache.mirror.phpchina.com/commons/modeler/binaries/commons-modeler-2.0.1.zip
2. commons-logging:
Http://commons.apache.org/downloads/download_logging.cgi
Http://apache.mirror.phpchina.com/commons/logging/binaries/commons-logging-1.1.zip
You may still not be able to log on here. The system will prompt HTTP status 403-access to the requested resource has been denied upon logon.

Cause:

In the/tomcat/conf directory

The tomcat-users.xml file content is as follows:

<? XML version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "Tomcat"/>
<Role rolename = "role1"/>
<User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/>
<User Username = "role1" Password = "Tomcat" roles = "role1"/>
<User Username = "both" Password = "Tomcat" roles = "tomcat, role1"/>
</Tomcat-users>

Problem modification: Change tomcat-users.xml file content

<? XML version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "Tomcat"/>
<Role rolename = "role1"/>
<Role rolename = "manager"/>
<Role rolename = "admin"/>
<User Username = "admin" Password = "admin" roles = "Admin, Manager"/>
<User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/>
<User Username = "role1" Password = "Tomcat" roles = "role1"/>
<User Username = "both" Password = "Tomcat" roles = "tomcat, role1"/>
</Tomcat-users>

Restart Tomcat and log on with the admin password.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.