FormTooLargeError

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
Tags:
Created by Sergiu Dumitriu on 2008/03/05 01:19
Last modified by Sergiu Dumitriu on 2008/03/05 01:24

This wiki is licensed under a Creative Commons license
2.2.1.27354