JBoss sends improper content length with a redirect response

Solution Verified - Updated -


  • Our application sends a redirect with response.sendRedirect. JBoss sends a non-zero value content length with the resulting redirect response to the client. This causes the client to hang as it waits for data per the specified content length, although it will be not provided in the redirect response.


  • JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x
  • JBoss Web Server (JWS) 5.x
    • Tomcat 9.0.x

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