Hi Sergiu,
Can you explain when the "form too large" error is happening and
under what conditions? I read
http://www.xwiki.org/xwiki/bin/view/FAQ/FormTooLargeError but didn't
understand when it happens.
Also, we must add comments in the files you've modified below to
explain why we're doing this since
this is not something obvious.
Thanks
-Vincent
On Mar 5, 2008, at 1:43 AM, sdumitriu (SVN) wrote:
Author: sdumitriu
Date: 2008-03-05 01:43:57 +0100 (Wed, 05 Mar 2008)
New Revision: 8202
Modified:
xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.bat
xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.sh
xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.bat
xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.sh
Log:
XTJETTY-6: Increase the default maximum form content size on Jetty
Done. The new default is 1 million bytes.
Modified: xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/
main/resources/start_xwiki.bat
===================================================================
--- xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.bat 2008-03-04 23:38:30 UTC (rev 8201)
+++ xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.bat 2008-03-05 00:43:57 UTC (rev 8202)
@@ -2,7 +2,7 @@
set LANG=fr_FR.ISO8859-1
set JETTY_HOME=jetty
set JETTY_PORT=8080
-set JAVA_OPTS=-Xmx300m
+set JAVA_OPTS=-Xmx300m -
Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000
REM Ensure the logs directory exists as otherwise Jetty reports an
error
if not exist %JETTY_HOME%\logs mkdir %JETTY_HOME%\logs
Modified: xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/
main/resources/start_xwiki.sh
===================================================================
--- xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.sh 2008-03-04 23:38:30 UTC (rev 8201)
+++ xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki.sh 2008-03-05 00:43:57 UTC (rev 8202)
@@ -17,7 +17,7 @@
cd "$PRGDIR"
JETTY_HOME=jetty
-JAVA_OPTS=-Xmx300m
+JAVA_OPTS=-Xmx300m -
Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000
# The port on which to start Jetty can be passed to this script as
the first argument
if [ -n "$1" ]; then
Modified: xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/
main/resources/start_xwiki_debug.bat
===================================================================
--- xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.bat 2008-03-04 23:38:30 UTC (rev 8201)
+++ xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.bat 2008-03-05 00:43:57 UTC (rev 8202)
@@ -2,7 +2,7 @@
set LANG=fr_FR.ISO8859-1
set JETTY_HOME=jetty
set JETTY_PORT=8080
-set JAVA_OPTS=-Xmx300m -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
+set JAVA_OPTS="-Xmx300m -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -
Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000"
# Jetty requires a logs directory to exist
if not exist %JETTY_HOME%\logs mkdir %JETTY_HOME%\logs
Modified: xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/
main/resources/start_xwiki_debug.sh
===================================================================
--- xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.sh 2008-03-04 23:38:30 UTC (rev 8201)
+++ xwiki-platform/xwiki-tools/trunk/xwiki-jetty-resources/src/main/
resources/start_xwiki_debug.sh 2008-03-05 00:43:57 UTC (rev 8202)
@@ -17,7 +17,7 @@
cd "$PRGDIR"
JETTY_HOME=jetty
-JAVA_OPTS="-Xmx300m -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+JAVA_OPTS="-Xmx300m -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -
Dorg.mortbay.http.HttpRequest.maxFormContentSize=1000000"
# For enabling YourKit Profiling:
# JAVA_OPTS="$JAVA_OPTS -agentlib:yjpagent"