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:
<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>
Resources
Mail List “Can’t upload large war to Tomcat 7, worked in Tomcat 6”
Thank you!
Thanks for the succinct answer. Came in handy.
It is working for me. Thanks for this.
Thanks a lot for help. Also working for me.
Thank you, this helped me very much!
Thanks bro it worked fine after changing the file size
good :]
Me salvaste!
Gracias!
Thank you for saving me some minutes!
Thks a lot. It’s worked for me (amc war talend)
that did help me… thank you
Thanks for help!
Thanks worked perfectly
Thank you! This was exactly the information that I needed to resolve my issue.
Muchas Gracias !
En debian lo pueden encontrar en
/usr/share/tomcat7-admin/manager/WEB-INF/web.xml
Thank you !
Thanks, it helped me.
Thanks bro
Thank u !!! It Works :))
It is really worthy
Thanks man.
Worked perfectly.
Perfect!
Thank you! This is my answer.
Thank you ! it works perfectly now
Thank you Gentleman ! it is very helpful for me