Failed appending the header value with 413 response in Apache HTTPD using mod_jk

Solution Verified - Updated -


  • We use mod_jk, and see a 413 response for some requests:

    Request Entity Too Large
    The requested resource
    /app does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.  
  • And mod_jk logs show:

    [error] ajp_marshal_into_msgb::jk_ajp_common.c (476): (node1) failed appending the header value for header 'Authorization' of length 13
    [info] ajp_service::jk_ajp_common.c (2577): (node1) Creating AJP message failed without recovery - check max_packet_size
  • Wireshark trace shows that web server is rejecting with the response below, but the same error is not present either in JBoss EAP logs or in the apache logs in debug mode.

    Hypertext Transfer Protocol
        HTTP/1.1 413 Request Entity Too Large\r\n
            [Expert Info (Chat/Sequence): HTTP/1.1 413 Request Entity Too Large\r\n]
                [Message: HTTP/1.1 413 Request Entity Too Large\r\n]
                [Severity level: Chat]
                [Group: Sequence]
            Request Version: HTTP/1.1
            Status Code: 413
            Response Phrase: Request Entity Too Large
        Date: Fri, 15 Feb 2013 21:49:36 GMT\r\n
        Server: Apache/2.2.15 (Red Hat)\r\n
        Connection: close\r\n
        Content-Type: text/html; charset=iso-8859-1\r\n
    [ajp-] DEBUG ( - createMessage: [contentType=multipart/related; 
    start-info="application/soap+xml"; action="urn:processNPCMsg"]
    [ajp-] DEBUG (org.apache.coyote.ajp.AjpMessage) - Received 0 18
    [ajp-] TRACE ( - createMessage
    [ajp-] DEBUG ( - Configure SOAPBinding
    [ajp-] ERROR ( - SOAP request exception
    java.lang.IllegalArgumentException: multipart/related stream invalid, no root part was found
  • How to increase the maxPostSize value from default 2MB to 10MB to upload larger files?


  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Web Server (JWS)
    • 3.0.x
  • Red Hat JBoss Core Services (JBCS)
  • Apache Web Server (HTTPD)
    • mod_jk
    • mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content