The size of the war package for Tomcat deployment exceeds the limit (severe: HTMLManager: FAIL, tomcathtmlmanager

Source: Internet
Author: User

The size of the war package for Tomcat deployment exceeds the limit (severe: HTMLManager: FAIL, tomcathtmlmanager

Chen kichao

====================

View the manager.2015-02-09.log file in the logs directory under the tomcat installation directory. You can find:

Severe: HTMLManager: FAIL-Deploy Upload Failed, Exception: org. apache. tomcat. util. http. fileupload. fileUploadBase $ SizeLimitExceededException: the request was rejected because its size (53891399) exceeds the configured maximum (52428800) java. lang. illegalStateException: org. apache. tomcat. util. http. fileupload. fileUploadBase $ SizeLimitExceededException: the request was rejected because its size (53891399) exceeds the configured maximum (52428800) at org. apache. catalina. connector. request. parseParts (Request. java: 2804) at org. apache. catalina. connector. request. parseParameters (Request. java: 3096) at org. apache. catalina. connector. request. getParameter (Request. java: 1145)
....

Based on the log content, it is not difficult to find the cause of the problem:

This indicates that the size of the uploaded deployment file exceeds the specified size, so the deployment fails!

Solution:

You only need to modify a configuration file, configuration file location: $ tomcat_home \ webapps \ manager \ WEB-INF \ web. xml



No. The maximum size is 50 MB, and you can modify it as needed.

Then it is changed to 100 MB, that is, 104857600

After modification, restart the tomcat server and perform the previous deployment operations.

OK. Deployment successful!

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.