Hi Bengt, since the Jetty.xml isn't the "lead" configuration for the jetty file and since the jetty is started in the "embedded" style you need to get a hold of this a bit different, or you use a jetty-web.xml file.
I'm not sure about the right syntax right now, but since it doesn't work and the jetty.xml is interpreted after the server is configured you probably need some getAttribute first. A maybe not so good matching example can be found at [1] regards, Achim [1] - http://nierbeck.de/cgi-bin/weblog_basic/index.php?p=165 2012/12/14 Bengt Rodehav <[email protected]> > I'm running a web application on Karaf 2.2.8. I need to send quite a lot > of data to the server using the POST method. I get the following error > message on the web browser side: > > Form too large1588889>200000 > > After googling I found how to reconfigure this on > http://wiki.eclipse.org/Jetty/Howto/Configure_Form_Size. > > I therefore modified the etc/jetty.xml as follows: > > ... > <Configure class="org.eclipse.jetty.server.Server"> > <Call name="setAttribute"> > <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg> > <Arg>2000000</Arg> > </Call> > ... > > But I still get the same error message. The configuration hasn't changed. > Am I doing this the wrong way? > > /Bengt > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>
