Problem
When uploading a WAR file larger than 50 MB, the Tomcat 7 Manager application reports:
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 (XXX) exceeds the configured maximum (52428800)
Solution
- Go to the web.xml of the manager application (for instance it could be under /tomcat7/webapps/manager/WEB-INF/web.xml.
- Increase the max-file-size and max-request-size:
<max-file-size><strong>52428800</strong></max-file-size>
<max-request-size><strong>52428800</strong></max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>
Nessun commento:
Posta un commento