This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes File Uploaod Size Limit exceeded exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "File Uploaod Size Limit exceeded exception" Watch "File Uploaod Size Limit exceeded exception" New topic
Author

File Uploaod Size Limit exceeded exception

Sonwabo Jordan
Greenhorn

Joined: Sep 01, 2011
Posts: 3
good day

When I upload a war file using Tomcat 7 Iget an exception as shown below:

java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (57688940) exceeds the configured maximum (52428800)

where do i configure tomcat to change this?

Thanks
Sonwabo
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
a google search for "tomcat file upload size limit" found many references.
Sonwabo Jordan
Greenhorn

Joined: Sep 01, 2011
Posts: 3
Hi

I do not seem to understand the answer I supposedly received from you.

Thnaks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
My intent was that you should perform that Google search - thus getting links to multiple discussions of configuration settings including "maxPostSize".

Google searches and Wikipedia articles work surprisingly well at answering many Java questions.

Bill

 
 
subject: File Uploaod Size Limit exceeded exception
 
Similar Threads
uploaded file size
java.security.AccessControlException
Tomcat stops on web service exception
serialization problem
Cannot start tomcat 3.3 from within eclipse