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!