Large WAR file cannot be deployed in Tomcat 7
Problem: FAIL – Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (xxxxxxx) exceeds the configured maximum (52428800)
Edit web.xml file (/usr/share/tomcat7-admin/manager/WEB-INF/web.xml), and increase the max-file-size and max-request-size
<multipart-config> <!– 50MB max –> <max-file-size>52428800</max-file-size> <max-request-size>52428800</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config>
Then restart tomcat:
# /etc/init.d/tomcat7 restart