People are generally prescribing something like this to configure maxFormContentSize for jetty in the jetty.xml:
<Configure id="Server" class="org.eclipse.jetty.server.Server">
...
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>10000000</Arg>
</Call>
</Configure>
In my experience, in 2024 with a recent version of jetty (9.4.53), this isn’t working inside apache’s karaf or in embedded mode within maven, and may not be working in other containers as well.
Continue reading Jetty maxFormContentSizeJetty not working? Here’s the fix