tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejo <alejo.gavi...@gmail.com>
Subject Re: The request was rejected because its size (102811565) exceeds the configured maximum (52428800)
Date Thu, 03 Feb 2011 20:48:14 GMT
Christopher Schultz <chris <at> christopherschultz.net> writes:

> 
> 
> http://catb.org/esr/faqs/smart-questions.html
> 
> On 8/25/2010 9:05 AM, Razvan Poenaru wrote:
> > 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 (102811565) exceeds the configured 
maximum (52428800)
> >         org.apache.catalina.connector.Request.parseParts(Request.java:2567)
> >         
org.apache.catalina.connector.Request.parseParameters(Request.java:2775)
> >         
org.apache.catalina.connector.Request.getParameter(Request.java:1097)
> >         
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:365)
> >         
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.j
ava:161)
> > root cause
> > 
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException
: the
> request was rejected because its size (102811565) exceeds the configured 
maximum (52428800)
> >         
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.<init
>(FileUploadBase.java:801)
> >         
org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUpload
Base.java:284)
> >         
org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBas
e.java:304)
> >         
org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload.parseRequest(Se
rvletFileUpload.java:129)
> >         org.apache.catalina.connector.Request.parseParts(Request.java:2540)
> >         
org.apache.catalina.connector.Request.parseParameters(Request.java:2775)
> >         
org.apache.catalina.connector.Request.getParameter(Request.java:1097)
> >         
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:365)
> >         
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.j
ava:161)
> > note The full stack trace of the root cause is available in the Apache 
Tomcat/7.0.2 logs.
> > 
> > 
> > Regards,
> > 
> > Razvan  Poenaru | Sr.Programmer/Analyst | Space Missions - MDA
> > (905) 790 2800 x4626|razvan.poenaru <at> 
mdacorporation.com|www.mdacorporation.com
> > Canada - 9445 Airport Road, Brampton, ON - L6S 4J3
> > 
> > 
> 

The default tomcat7 install for the module "manager" contains the maximum file 
size in 50MB or 52428800, there's the default value in \webapps\manager\WEB-
INF\web.xml

    <multipart-config>
      <!-- 52MB max -->
      <max-file-size>52428800</max-file-size>
      <max-request-size>52428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

I changed that value to a greater and it works.

Regards,

Alejo






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


Mime
View raw message