<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Enable GZIP compression in tomcat</title>
	<atom:link href="http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/feed" rel="self" type="application/rss+xml" />
	<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html</link>
	<description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description>
	<lastBuildDate>Wed, 08 Sep 2010 11:05:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Agus</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-12889</link>
		<dc:creator>Agus</dc:creator>
		<pubDate>Fri, 23 Jul 2010 01:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-12889</guid>
		<description>May I know how to post the code here?</description>
		<content:encoded><![CDATA[<p>May I know how to post the code here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agus</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-12888</link>
		<dc:creator>Agus</dc:creator>
		<pubDate>Fri, 23 Jul 2010 01:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-12888</guid>
		<description>port=&quot;8180&quot; maxHttpHeaderSize=&quot;8192&quot; address=&quot;192.168.1.83&quot;
               maxThreads=&quot;150&quot; minSpareThreads=&quot;25&quot; maxSpareThreads=&quot;75&quot;
               enableLookups=&quot;false&quot; redirectPort=&quot;9543&quot; acceptCount=&quot;150&quot;
               connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot;
               compression=&quot;on&quot;  compressionMinSize=&quot;12000&quot; noCompressionUserAgents=&quot;gozilla,traviata&quot;
               compressableMimeType=&quot;text/html,text/xml,text/css,text/javascript,application/x-javascript&quot;</description>
		<content:encoded><![CDATA[<p>port=&#8221;8180&#8243; maxHttpHeaderSize=&#8221;8192&#8243; address=&#8221;192.168.1.83&#8243;<br />
               maxThreads=&#8221;150&#8243; minSpareThreads=&#8221;25&#8243; maxSpareThreads=&#8221;75&#8243;<br />
               enableLookups=&#8221;false&#8221; redirectPort=&#8221;9543&#8243; acceptCount=&#8221;150&#8243;<br />
               connectionTimeout=&#8221;20000&#8243; disableUploadTimeout=&#8221;true&#8221;<br />
               compression=&#8221;on&#8221;  compressionMinSize=&#8221;12000&#8243; noCompressionUserAgents=&#8221;gozilla,traviata&#8221;<br />
               compressableMimeType=&#8221;text/html,text/xml,text/css,text/javascript,application/x-javascript&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agus</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-12887</link>
		<dc:creator>Agus</dc:creator>
		<pubDate>Fri, 23 Jul 2010 01:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-12887</guid>
		<description>Hi Viral,

That&#039;s strange my ext-all.js is not compressed at all. 
 

Above is the connector settings I have on server.xml. Thank you very much for you help.</description>
		<content:encoded><![CDATA[<p>Hi Viral,</p>
<p>That&#8217;s strange my ext-all.js is not compressed at all. </p>
<p>Above is the connector settings I have on server.xml. Thank you very much for you help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-12832</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Wed, 14 Jul 2010 09:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-12832</guid>
		<description>@Agus: There is no upper limit on size for compression. Check the mime type that you have specified in server.xml. Is it application/x-javascript? Also try to refresh and clear cache to see if the browser is not serving the js from cache.</description>
		<content:encoded><![CDATA[<p>@Agus: There is no upper limit on size for compression. Check the mime type that you have specified in server.xml. Is it application/x-javascript? Also try to refresh and clear cache to see if the browser is not serving the js from cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agus</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-12831</link>
		<dc:creator>Agus</dc:creator>
		<pubDate>Wed, 14 Jul 2010 09:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-12831</guid>
		<description>Hi Viral,

I have turned On the compression on my tomcat server. Below is the setting of my server.xml




And it works on all js files, except ext-all.js file which is around ~650KB, and this file is my main intention of of turning ON the compression.  Is there any upper limit on the size of the file to be compressed?</description>
		<content:encoded><![CDATA[<p>Hi Viral,</p>
<p>I have turned On the compression on my tomcat server. Below is the setting of my server.xml</p>
<p>And it works on all js files, except ext-all.js file which is around ~650KB, and this file is my main intention of of turning ON the compression.  Is there any upper limit on the size of the file to be compressed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prakash Suthar</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-11739</link>
		<dc:creator>Prakash Suthar</dc:creator>
		<pubDate>Thu, 03 Dec 2009 09:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-11739</guid>
		<description>Hi,

Thanks in advance.

I am using WAS5.1 and J2EE 1.4.
I want to use GZip compression in my Struts application.
I am able to use this compression for .jsp and .html file.
Once I configure GZip compression for (/*) patten, it gives below exception.

I am able to used GZip compression for struts application in Tomcat environment, but it does not work for Struts action in WAS5.1.

==================================
[12/3/09 14:32:00:216 IST] 5a8b8c0a WebGroup      E SRVE0026E: [Servlet Error]-[]: java.lang.ClassCastException
	at com.ibm.ws.cache.servlet.CacheProxyResponse.isCommitted(CacheProxyResponse.java(Compiled Code))
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
==================================

Let me know if you need some more details.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks in advance.</p>
<p>I am using WAS5.1 and J2EE 1.4.<br />
I want to use GZip compression in my Struts application.<br />
I am able to use this compression for .jsp and .html file.<br />
Once I configure GZip compression for (/*) patten, it gives below exception.</p>
<p>I am able to used GZip compression for struts application in Tomcat environment, but it does not work for Struts action in WAS5.1.</p>
<p>==================================<br />
[12/3/09 14:32:00:216 IST] 5a8b8c0a WebGroup      E SRVE0026E: [Servlet Error]-[]: java.lang.ClassCastException<br />
	at com.ibm.ws.cache.servlet.CacheProxyResponse.isCommitted(CacheProxyResponse.java(Compiled Code))<br />
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))<br />
	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)<br />
	at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)<br />
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)<br />
==================================</p>
<p>Let me know if you need some more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Intesar</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-11689</link>
		<dc:creator>Intesar</dc:creator>
		<pubDate>Sat, 21 Nov 2009 07:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-11689</guid>
		<description>Thanks,
Worked like a charm!

..Connector port=”8080″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″
compression=”on”
compressionMinSize=”2048″
noCompressionUserAgents=”gozilla, traviata”
compressableMimeType=”text/html,text/xml,text/plain,text/javascript,text/css”</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Worked like a charm!</p>
<p>..Connector port=”8080″ protocol=”HTTP/1.1″<br />
connectionTimeout=”20000″<br />
redirectPort=”8443″<br />
compression=”on”<br />
compressionMinSize=”2048″<br />
noCompressionUserAgents=”gozilla, traviata”<br />
compressableMimeType=”text/html,text/xml,text/plain,text/javascript,text/css”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-11595</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 06 Nov 2009 23:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-11595</guid>
		<description>Where can I find info on how a client can UNCOMPRESS this data? All these articles/topics assume the server is hit from a browser. The browser handles uncompressing the data automatically. I&#039;m not hitting my server from a browser. I&#039;m using another client program.</description>
		<content:encoded><![CDATA[<p>Where can I find info on how a client can UNCOMPRESS this data? All these articles/topics assume the server is hit from a browser. The browser handles uncompressing the data automatically. I&#8217;m not hitting my server from a browser. I&#8217;m using another client program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deckard Cain</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-11590</link>
		<dc:creator>Deckard Cain</dc:creator>
		<pubDate>Thu, 05 Nov 2009 16:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-11590</guid>
		<description>Simply, IE is not a browser..</description>
		<content:encoded><![CDATA[<p>Simply, IE is not a browser..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html/comment-page-1#comment-11580</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Tue, 03 Nov 2009 16:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=211#comment-11580</guid>
		<description>@rasha,  @choesang: Generally the problem that you are facing is due to browser cache issue. Clear your browser cache and try again.</description>
		<content:encoded><![CDATA[<p>@rasha,  @choesang: Generally the problem that you are facing is due to browser cache issue. Clear your browser cache and try again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
