Mensagem de erro:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (54526273) exceeds the configured maximum (52428800) org.apache.catalina.connector.Request.parseParts(Request.java:2666) org.apache.catalina.connector.Request.parseParameters(Request.java:2875) org.apache.catalina.connector.Request.getParameter(Request.java:1131) org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:384) org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:163)root cause
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (54526273) exceeds the configured maximum (52428800) org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:799) org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:282) org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302) org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:129) org.apache.catalina.connector.Request.parseParts(Request.java:2638) org.apache.catalina.connector.Request.parseParameters(Request.java:2875) org.apache.catalina.connector.Request.getParameter(Request.java:1131) org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:384) org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:163)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.16 logs.
Apache Tomcat/7.0.16
Solução:
Procure o arquivo "web.xml" do "manager application" (normalmente encontra-se em /tomcat7/webapps/manager/WEB-INF/web.xml)
Procure os parametros: "max-file-size" e "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>