Best unofficial Apache Server developers community |
|
i have java webapp that i develop locally with m2eclips+jetty+eclipse, and deploy nightly to tomcat. With jetty, i get UTF-8 error when i send ajax posts to the server. The same code works fine in tomcat. On the jetty side, i can see all the post params, and everything gets logged to the logfiles, but then a runtime exception is thrown saying that the encoding is unrecognized. My pages are all encoded as utf-8, and the headers in the Post are utf-8. it appears that something in jetty or eclipse doesnt like the utf-8 encoding and I cant figure out what it might be. any thoughts?
posted via StackOverflow
|
|
 
|
That semicolon is suspicious. It isn't part of the normal error message/trace. Sure that you or Ajax didn't set |
![]()  
|
i found the answer to my question. I am using the apache click framework and had recently upgraded from version 2.2.0 to 2.3.0-RC1. A bug was introduced in version 2.3.0-RC1 that caused duplicate contentType headers to be sent on AJAX requests. Tomcat was able to gracefully handle the mis-constructed header, Jetty was not. i ended up applying a temp patch by overriding the problem function. |