Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PWC4011: Unable to set request character encoding to UTF-8 from context

Muhammad.RizwanAug 7 2015 — edited Aug 8 2015

Hi,

I am using jdev 11.1.2.4 and deployed my application on glassfish 3.1.2.

I get below warning on every request.

glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=124;_ThreadName=Thread-2;

|PWC4011: Unable to set request character encoding to UTF-8 from context /app, because request parameters have already been read

, or ServletRequest.getReader() has already been called|#]

I looked at below link where BalusC has advised to add entry in glassfish-web.xml

You can do that by adding the following entry to the <glassfish-web-app> of your /WEB-INF/glassfish-web.xml file: 

<parameter-encoding default-charset="UTF-8"/>

http://stackoverflow.com/questions/7643484/how-to-get-rid-of-warning-pwc4011-unable-to-set-request-character-encoding-to

where is glassfish-web.xml located in glassfish installation?

is there any other solution for this issue?

thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2015
Added on Aug 7 2015
5 comments
880 views