Tomcat Deployment War package size exceeds the limit size (critical: Htmlmanager:fail-deploy Upload Failed, Exception)

Source: Internet
Author: User

Chen Kozhan

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

View the Manager.2015-02-09.log file under the logs directory in the Tomcat installation directory to discover:

Severity: 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)
....

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

This indicates that the uploaded deployment file exceeded the set size, so the deployment failed!

Solution:

We only need to modify a configuration file, configuration file location: $tomcat _home\webapps\manager\web-inf\web.xml



See no, here limit the maximum is 50MB, and then according to their own needs to modify can

This is then modified to 100MB, i.e. 104857600

after modification, restart the Tomcat server and perform the previous deployment operation

OK, deployment is successful!

Tomcat Deployment War package size exceeds the limit size (critical: Htmlmanager:fail-deploy Upload Failed, Exception)

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.