java - Apache 2.4 + Glassfish Server 2.1 post too large error -


i'm using apache 2.4 glassfish 2.1 , keep getting error large posts:

java.lang.illegalstateexception: post large

i've tried change property maxpostsize of glassfish http-listener lot of values (and 0, accept everything) nothing seems work.

do guys know of other thing might issue here?

ps: post has 4mb. think bigger 2mb being rejected.

edit: if take apache out of way, request works fine. isn't glassfish bug in communication of apache-glassfish. no idea though.

edit 2: error happening in specific service, opened direct glassfish port end. "solved" problem.

configure post request max size in glassfish server

under http-service element in ${glassfish.home}/domains/domain/config/domain.xml, can try adding following property (or use admin-gui):

<property name="maxpostsize" value="...."/> 

configure request size in apache

this directive set unlimited default. if allowing file uploads of no larger 1mb, set setting like:

limitrequestbody 1048576 

you can change request size extra/httpd-default.conf (uncomment want configure)

#limitrequestline: limit on bytes in request-line (method+uri+http-version). #maximum value set default_limit_request_line in httpd.h 8190kb #limit http request size in bytes #limitrequestline 8190  #limitrequestfieldsize: limit on bytes in 1 header field. #maximum value set default_limit_request_fieldsize in httpd.h 8190kb #limit length must less limitrequestline. #limitrequestfieldsize 8190  #limitrequestbody: limit on bytes in request-line. #limitrequestbody 8190 #limitrequestfields: limit on number of request header fields.  #limitrequestfields 100 

edit: i'm not sure if official bug glassfish 2.1. if above solution doesn't work you, try install latest glassfish version (current version glassfish 4.1).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -