Question How to solve the "Form too large" error in Jetty?
Answer This happens because Jetty has a default POST accepted size a bit too small. The good thing is that it can be customized!

To do this, edit the startup script (start_xwiki.sh on *nix systems or start_xwiki.bat on windows) and add to the JAVA_OPTS parameter the following:

-Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000
or whatever size you want. So for example, you will get a line like:
JAVA_OPTS=-Xmx512m -Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000
Version 1.1 last modified by Sergiu Dumitriu on 05/03/2008 at 01:24

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: Sergiu Dumitriu on 2008/03/05 01:19
This wiki is licensed under a Creative Commons license
1.3.2.9174