You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "The Geek ..." <ge...@sogeeky.net> on 2011/01/19 21:21:20 UTC

Can't upload large war to Tomcat 7, worked in Tomcat 6

I recently upgraded to Tomcat 7.0.6 and tried uploading a large war file
(~350MB) through the manager gui webapp.  It failed with the following
exception, but I used to do this just fine under Tomcat 6.  The exception
itself seems clear, but I've googled until my fingers bleed and can't find
any settings I might change to fix this.  Does anyone have any advice?

java.lang.IllegalStateException:
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (362810879) exceeds the configured
maximum (52428800)
org.apache.catalina.connector.Request.parseParts(Request.java:2607)
org.apache.catalina.connector.Request.parseParameters(Request.java:2816)
org.apache.catalina.connector.Request.getParameter(Request.java:1108)
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:384)
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:162)

Thank you!
-David

Re: Can't upload large war to Tomcat 7, worked in Tomcat 6

Posted by Mark Thomas <ma...@apache.org>.
On 19/01/2011 20:45, André Warnier wrote:
> But, don't despair, I see this somewhere :
> $Id: FileUploadBase.java 1001939 2010-09-27 22:29:30Z markt $
> 
> so if he is around, the real answer may be coming soon.

:)

Look in the web.xml for the Manager application.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't upload large war to Tomcat 7, worked in Tomcat 6

Posted by André Warnier <aw...@ice-sa.com>.
The Geek ... wrote:
> I recently upgraded to Tomcat 7.0.6 and tried uploading a large war file
> (~350MB) through the manager gui webapp.  It failed with the following
> exception, but I used to do this just fine under Tomcat 6.  The exception
> itself seems clear, but I've googled until my fingers bleed and can't find
> any settings I might change to fix this.  Does anyone have any advice?
> 
> java.lang.IllegalStateException:
> org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
> the request was rejected because its size (362810879) exceeds the configured
> maximum (52428800)
> org.apache.catalina.connector.Request.parseParts(Request.java:2607)
> org.apache.catalina.connector.Request.parseParameters(Request.java:2816)
> org.apache.catalina.connector.Request.getParameter(Request.java:1108)
> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:384)
> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:162)
> 

You are right, it is hard to find.  Google for 
"org.apache.tomcat.util.http.fileupload.FileUploadBase" helps however.

Try this one first : <Connector> attribute maxPostSize.

Then you could have a look here :
http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/util/http/fileupload/FileUploadBase.html#setSizeMax%28long%29

if that helps.
But as far as I see there, the default is -1, meaning unlimited.

But, don't despair, I see this somewhere :
$Id: FileUploadBase.java 1001939 2010-09-27 22:29:30Z markt $

so if he is around, the real answer may be coming soon.


By the way, 350 MB is not bad for a webapp.  And that is zipped, so how do you manage that ?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't upload large war to Tomcat 7, worked in Tomcat 6

Posted by "The Geek ..." <ge...@sogeeky.net>.
>Look in the web.xml for the Manager application.
>
>Mark

Doh!  Thanks for that...