javajquerywebtomcat7centos6.5

ERR_CONTENT_LENGTH_MISMATCH while loading js files on tomcat server


Configuration:

Issue: When the war file is deployed on tomcat, it gets exploded properly and the web portal works fine. Machine is idle for over 12 hours.

What i have tried:

Question:


Solution

  • In conf/server.xml config file in apache tomcat folder set the "usesendfile" attribute to "false" as shown below:-

    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"  **useSendfile="false"**/>
    

    Please refer to link: http://ci.apache.org/projects/tomcat/tomcat7/docs/config/http.html for more details.