Test and experience of Tomcat Manager functions

Source: Internet
Author: User
Experiment and experience using the Manager function of Tomcat 4.

1) enable the manager function.
In the test struts, modified the struts-config.xml file, need to restart Tomcat for testing.
Every restart is very troublesome. I suddenly think of the previously used Tomcat Manager function, which can easily start, stop, restart, and remove web applications, this saves you the trouble of restarting the entire container server frequently.

You can enter the address http: // localhost: 8080/manager/html to indicate that you do not have the permission.
Open the server/webapps/manager directory, and the JSP and Servlet files are not displayed. Is the corresponding management servlet not found? It should define the Web ing in the web. xml file.
The system uses org. Apache. Catalina. servlets. htmlmanagerservlet. This class is in the J2EE. jar package.
Put J2EE. Jar under server/webapps/manager/WEB-INF/lib and restart tomcat.
Prompt message: Because the J2EE. jar package contains servlet. Class and violates the servelet2.3 specification, Tomcat does not load the jar.
Use WinRAR to open the file and delete the servlet directory.
Restart Tomcat and still cannot use the manage function.

There is no way to read the e-help document. The Administrator role had to be added to the conf/tomcat-users.xml file.
Add a row to the XML file,
And grant permissions to the root user.

Restart, everything is OK. You can use the Tomcat management function, which is very convenient. You can try it.

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.