On Glassfish the following error is logged to the server.log

PWC4011: Unable to set request character encoding to UTF-8 from context /yellowfire, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

After searching the web and some help from The BalusC Code I landed on the following page Glassfish FaqHttpRequestParameterEncoding, which describes the resolution. Here is a more recent post that was included in the Glassfish Tab Sweep explaining the default servlet encoding and how to change it.

Place the following in the glassfish-web.xml of the web application.

<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
	<parameter-encoding default-charset="UTF-8"/>
</glassfish-web-app>
Advertisements