encoding - Tomcat response hanging when processing simple request for .JS file -


i have javascript file on tomcat 7 server.

however, when attempt retrieve file via http get, response hangs , not write file client. writes 80% of file client response seems hang. can't find in tomcat logs @ point.

it not seem browser issue, hangs wget, chrome, firefox , ie.

if rename file extension detected different mime type, works , download (e.g. rename test.blah). note: .txt (plain/text) fails.

i've noticed there possibly strange characters encoded file:

iconv -f ascii -t ascii jquery.jqplot.js  > test iconv: illegal input sequence @ position 321379 

i have tried playing around iconv find , strip out strange characters, no avail.

iconv f ascii -t ascii//ignore jquery.jqplot.js  > test   #still not work) 

the file here:

http://www.tempsend.com/081feaaa7f/d7c0/jquery.jqplot.js

  • note: if change mime-mapping in web.xml "js" extensions "application/javascript" "application/octet-stream" download fine.

** update:

i able reproduce dropping file directly webapps/root/ , attempting fetch it. details: rhels 5.9 -tomcat 7.0.27 , 7.0.52.

also noticed occurs when accessing file remotely on http (it works on https or via localhost). leading me think may strange intranet firewall issue.

this works me without problems on clean tomcat 7.0.53 install (using rc since 7.0.53 hasn't been formally released write this).

the issues recall in last few years relating tomcat , javascript user agents not recognising mime-type.

i've checked compression , still works.

therefore, application doing. i'd suggest looking @ filters , servlet configured serve javascript and/or static resources.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -