Hi Jim,
can you pls. try newer grizzly version (2.2.18 for example), cause this
bug sounds like something we fixed long time ago.
Thanks.
WBR,
Alexey.
On 09/13/2012 09:33 AM, Jim Duan wrote:
> Hi all,
>
> I set up a project using jersey1.11 and grizzly2.1.2. the project is
> made of two parts. one parts is html,jQuery file, and another is rest
> server. we send ajax request from html file to rest server and the
> rest server return the response data. It works fine in windows platform.
> But if we move the server from windows platform to ubuntu platform, we
> found one strange issue.
> we use the firefox brower and using the firebug to see the response
> data and find out some garbled character like below:
>
> <!DOCTYPE HTML>
> <html>
> <head>
>
> under normal conditions is should have the  characters.but like
> google chrome brower also works fine.
>
> at first I suspect this issue is caused by firefox brower, but I move
> the code to apache-tomcat6.0.35 server. it also works fine. not only
> firefox but also google chrome.
> This html file is processed
> by org.glassfish.grizzly.http.server.StaticHttpHandler, i have no
> special operation.
>
>
> expect to get your reply.
> Thank you!
>
> Jim
> 2012-09-13
>
>
>
>
>
> Machine Detail:
> machine OS: Ubuntu11.04
> java version : 1.6
> grizzly version : 2.1.2
> jersery : 1.11
>
> Project Detail
> client code : html,jquery.js
> html code : every html file starts with the below string. other code
> is very common.
> <!DOCTYPE HTML>
> <html>
> <head>
>
>
> server code : java only
>
> private static HttpServer server = null;
>
> server.getServerConfiguration().addHttpHandler(new
> StaticHttpHandler(DataSourceCenter.getInstance().getWebrootDirs()),"/html");
>