RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-25 Thread Reynir Hübner
You could install a filter in your webapplication to do this.
Check out the filter tutorials at www.orionserver.com

Specifically this one :
http://www.orionserver.com/tutorials/filters/5.html


Hope it helps
-reynir

> -Original Message-
> From: mech [mailto:[EMAIL PROTECTED]] 
> Sent: 24. janúar 2003 23:33
> To: 'Tomcat Users List'
> Subject: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> Hi,
> 
> I'm currently using Tomcat 4.1.18 for my webapp quite 
> successfully. Unfortunately one db output page is almost 60KB 
> large (1/3 of it is only spaces and tabs) so I was thinking 
> about trying Tomcat 4.1.19's new HTTP 1.1 gzip support.
> 
> I installed 4.1.19 and my webapp is running again, but how to 
> enable gzip support? My Mozilla supports gzip according to 
> header infos. But how do I find out if my pages really got 
> compressed? Mozilla's page info still says encoding=ISO... 
> (although I'm not sure if this is because of the page 
> content). Sorry, but I didn't see/feel any difference yet ;-) 
> Did I forget something?
> 
> Anyhow I wonder how to activate gzip for the connector? 
> Shouldn't there be some kind of attribute in server.xml to 
> set for  className="org.apache.coyote.tomcat4.CoyoteConnector"... ? 
> But I saw nothing in the documentation like "enableGZIP=true".
> 
> I also read that there was (is?) a filter servlet available 
> somewhere to be used for on-the-fly gzip compression. Where 
> can I get some more info how to obtain it and set it up, if I 
> wouldn't use the http connector support?
> 
> Any ideas about this.
> Michael
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-25 Thread Madhava Reddy
Reynir,

It looks Orion is not open sourse and free.. What about license issues, if
we want to use for commertial purpose?

Madhav

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 3:28 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?


You could install a filter in your webapplication to do this.
Check out the filter tutorials at www.orionserver.com

Specifically this one :
http://www.orionserver.com/tutorials/filters/5.html


Hope it helps
-reynir

> -Original Message-
> From: mech [mailto:[EMAIL PROTECTED]] 
> Sent: 24. janúar 2003 23:33
> To: 'Tomcat Users List'
> Subject: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> Hi,
> 
> I'm currently using Tomcat 4.1.18 for my webapp quite 
> successfully. Unfortunately one db output page is almost 60KB 
> large (1/3 of it is only spaces and tabs) so I was thinking 
> about trying Tomcat 4.1.19's new HTTP 1.1 gzip support.
> 
> I installed 4.1.19 and my webapp is running again, but how to 
> enable gzip support? My Mozilla supports gzip according to 
> header infos. But how do I find out if my pages really got 
> compressed? Mozilla's page info still says encoding=ISO... 
> (although I'm not sure if this is because of the page 
> content). Sorry, but I didn't see/feel any difference yet ;-) 
> Did I forget something?
> 
> Anyhow I wonder how to activate gzip for the connector? 
> Shouldn't there be some kind of attribute in server.xml to 
> set for  className="org.apache.coyote.tomcat4.CoyoteConnector"... ? 
> But I saw nothing in the documentation like "enableGZIP=true".
> 
> I also read that there was (is?) a filter servlet available 
> somewhere to be used for on-the-fly gzip compression. Where 
> can I get some more info how to obtain it and set it up, if I 
> wouldn't use the http connector support?
> 
> Any ideas about this.
> Michael
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-25 Thread Jacob Kjome

Note that I tried to implement the filter based on Orions tutorial on 
Tomcat-4.1.x and it works, but only for static html.  For dynamic content 
when filtering a servlet or JSP, Tomcat won't let me set the headers 
necessary for the browser to understand that what I am sending is a GZipped 
stream.  For some reason, the GZip filter in the examples webapp that comes 
with Tomcat works, but there is so much going on in that one that it is 
difficult to understand and it doesn't really report the original size of 
the response and the new GZipped size so I'm not actually positive it is 
doing anything at all.

I have discussed this at length previously on this list.

See:
http://marc.theaimsgroup.com/?l=tomcat-user&m=104190254716466&w=2
and
http://marc.theaimsgroup.com/?l=tomcat-user&m=104249879415902&w=2

There is source code attached to this message.  You can try it out.  It is 
based on the orion filter
http://marc.theaimsgroup.com/?l=tomcat-user&m=104251687703102&w=2

If anyone figures out why this isn't working, could you please cc me at 
[EMAIL PROTECTED]  Thanks.

BTW, the original point of the current email thread was that Remy enabled 
GZip natively in Coyote for the Tomcat-4.1.19 release.  The question is, 
how do we turn that on?  It would negate the need for the GZip filter, 
although I'd still like to know why the filter doesn't work in Tomcat.


Jake


At 06:48 PM 1/25/2003 +0100, you wrote:
Reynir,

It looks Orion is not open sourse and free.. What about license issues, if
we want to use for commertial purpose?

Madhav

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 3:28 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?


You could install a filter in your webapplication to do this.
Check out the filter tutorials at www.orionserver.com

Specifically this one :
http://www.orionserver.com/tutorials/filters/5.html


Hope it helps
-reynir

> -Original Message-
> From: mech [mailto:[EMAIL PROTECTED]]
> Sent: 24. janúar 2003 23:33
> To: 'Tomcat Users List'
> Subject: Tomcat 4.1.18/19 - How to activate gzip support?
>
>
> Hi,
>
> I'm currently using Tomcat 4.1.18 for my webapp quite
> successfully. Unfortunately one db output page is almost 60KB
> large (1/3 of it is only spaces and tabs) so I was thinking
> about trying Tomcat 4.1.19's new HTTP 1.1 gzip support.
>
> I installed 4.1.19 and my webapp is running again, but how to
> enable gzip support? My Mozilla supports gzip according to
> header infos. But how do I find out if my pages really got
> compressed? Mozilla's page info still says encoding=ISO...
> (although I'm not sure if this is because of the page
> content). Sorry, but I didn't see/feel any difference yet ;-)
> Did I forget something?
>
> Anyhow I wonder how to activate gzip for the connector?
> Shouldn't there be some kind of attribute in server.xml to
> set for  className="org.apache.coyote.tomcat4.CoyoteConnector"... ?
> But I saw nothing in the documentation like "enableGZIP=true".
>
> I also read that there was (is?) a filter servlet available
> somewhere to be used for on-the-fly gzip compression. Where
> can I get some more info how to obtain it and set it up, if I
> wouldn't use the http connector support?
>
> Any ideas about this.
> Michael
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-26 Thread Reynir Hübner
No I was not telling you to use orion server, just to use the Tutorial, and it's code 
examples to implement the GZIP filter. 
I think that should be allright.. you should not have any license problems.

-r


> -Original Message-
> From: Madhava Reddy [mailto:[EMAIL PROTECTED]] 
> Sent: 25. janúar 2003 17:48
> To: 'Tomcat Users List'
> Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> Reynir,
> 
> It looks Orion is not open sourse and free.. What about 
> license issues, if we want to use for commertial purpose?
> 
> Madhav
> 
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 25, 2003 3:28 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> You could install a filter in your webapplication to do this. 
> Check out the filter tutorials at www.orionserver.com
> 
> Specifically this one : 
> http://www.orionserver.com/tutorials/filters/5.html
> 
> 
> Hope it helps
> -reynir
> 
> > -Original Message-
> > From: mech [mailto:[EMAIL PROTECTED]]
> > Sent: 24. janúar 2003 23:33
> > To: 'Tomcat Users List'
> > Subject: Tomcat 4.1.18/19 - How to activate gzip support?
> > 
> > 
> > Hi,
> > 
> > I'm currently using Tomcat 4.1.18 for my webapp quite
> > successfully. Unfortunately one db output page is almost 60KB 
> > large (1/3 of it is only spaces and tabs) so I was thinking 
> > about trying Tomcat 4.1.19's new HTTP 1.1 gzip support.
> > 
> > I installed 4.1.19 and my webapp is running again, but how to
> > enable gzip support? My Mozilla supports gzip according to 
> > header infos. But how do I find out if my pages really got 
> > compressed? Mozilla's page info still says encoding=ISO... 
> > (although I'm not sure if this is because of the page 
> > content). Sorry, but I didn't see/feel any difference yet ;-) 
> > Did I forget something?
> > 
> > Anyhow I wonder how to activate gzip for the connector?
> > Shouldn't there be some kind of attribute in server.xml to 
> > set for  > className="org.apache.coyote.tomcat4.CoyoteConnector"... ? 
> > But I saw nothing in the documentation like "enableGZIP=true".
> > 
> > I also read that there was (is?) a filter servlet available
> > somewhere to be used for on-the-fly gzip compression. Where 
> > can I get some more info how to obtain it and set it up, if I 
> > wouldn't use the http connector support?
> > 
> > Any ideas about this.
> > Michael
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-26 Thread mech
Maybe let's go back to the more interesting original question, although
it might be possible to use a filter for gzip,too.

That was "how to enable gzip for Tomcat 4.1.19"

Release notes say:

[4.1.19] CoyoteConnector:
 Add HTTP/1.1 GZIP compression support.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.19-alph
a/RELEASE-NOTES


So great to hear, but which button to push to activate this "secret
feature"? Didn't find a hint in the 4.1.19 documentation.
Michael


> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]] 
> Sent: Sonntag, 26. Januar 2003 12:15
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> No I was not telling you to use orion server, just to use the 
> Tutorial, and it's code examples to implement the GZIP filter. 
> I think that should be allright.. you should not have any 
> license problems.
> 
> -r
> 
> 
> > -Original Message-
> > From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
> > Sent: 25. janúar 2003 17:48
> > To: 'Tomcat Users List'
> > Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
> > 
> > 
> > Reynir,
> > 
> > It looks Orion is not open sourse and free.. What about
> > license issues, if we want to use for commertial purpose?
> > 
> > Madhav
> > 
> > -----Original Message-
> > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, January 25, 2003 3:28 PM
> > To: Tomcat Users List
> > Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
> > 
> > 
> > You could install a filter in your webapplication to do this.
> > Check out the filter tutorials at www.orionserver.com
> > 
> > Specifically this one :
> > http://www.orionserver.com/tutorials/filters/5.html
> > 
> > 
> > Hope it helps
> > -reynir
> > 
> > > -Original Message-
> > > From: mech [mailto:[EMAIL PROTECTED]]
> > > Sent: 24. janúar 2003 23:33
> > > To: 'Tomcat Users List'
> > > Subject: Tomcat 4.1.18/19 - How to activate gzip support?
> > > 
> > > 
> > > Hi,
> > > 
> > > I'm currently using Tomcat 4.1.18 for my webapp quite 
> successfully. 
> > > Unfortunately one db output page is almost 60KB large 
> (1/3 of it is 
> > > only spaces and tabs) so I was thinking about trying 
> Tomcat 4.1.19's 
> > > new HTTP 1.1 gzip support.
> > > 
> > > I installed 4.1.19 and my webapp is running again, but 
> how to enable 
> > > gzip support? My Mozilla supports gzip according to header infos. 
> > > But how do I find out if my pages really got compressed? 
> Mozilla's 
> > > page info still says encoding=ISO... (although I'm not 
> sure if this 
> > > is because of the page content). Sorry, but I didn't see/feel any 
> > > difference yet ;-) Did I forget something?
> > > 
> > > Anyhow I wonder how to activate gzip for the connector? Shouldn't 
> > > there be some kind of attribute in server.xml to set for 
>  > > className="org.apache.coyote.tomcat4.CoyoteConnector"... ? 
> > > But I saw nothing in the documentation like "enableGZIP=true".
> > > 
> > > I also read that there was (is?) a filter servlet available 
> > > somewhere to be used for on-the-fly gzip compression. Where can I 
> > > get some more info how to obtain it and set it up, if I 
> wouldn't use 
> > > the http connector support?
> > > 
> > > Any ideas about this.
> > > Michael
> > > 
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > > For
> > > additional commands,
> > > e-mail: <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-30 Thread Marco Baiguera
in 4.1.19 coyote connector tag i tried the "compressione" parameter
but seen no results
haw can i check if my page is being compressed (client-side)? 
thanx


- Original Message - 
From: "mech" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 12:33 AM
Subject: Tomcat 4.1.18/19 - How to activate gzip support?


> Hi,
> 
> I'm currently using Tomcat 4.1.18 for my webapp quite successfully.
> Unfortunately one db output page is almost 60KB large (1/3 of it is only
> spaces and tabs) so I was thinking about trying Tomcat 4.1.19's new HTTP
> 1.1 gzip support.
> 
> I installed 4.1.19 and my webapp is running again, but how to enable
> gzip support? My Mozilla supports gzip according to header infos.
> But how do I find out if my pages really got compressed? Mozilla's page
> info still says encoding=ISO... (although I'm not sure if this is
> because of the page content). Sorry, but I didn't see/feel any
> difference yet ;-) Did I forget something?
> 
> Anyhow I wonder how to activate gzip for the connector? Shouldn't there
> be some kind of attribute in server.xml to set for
>  But I saw nothing in the documentation like "enableGZIP=true".
> 
> I also read that there was (is?) a filter servlet available somewhere to
> be used for on-the-fly gzip compression. Where can I get some more info
> how to obtain it and set it up, if I wouldn't use the http connector
> support?
> 
> Any ideas about this.
> Michael
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-30 Thread mech
What parameter did you set? Nobody seems to know how to activate gzip
support for 4.1.19...
(Hope you didn't try enableGZIP="true" *g*)

Actually that's the question... How to activate this gzip feature? The
release-notes say that the coyote connector would support gzip now, but
nowhere i found how to enable it. Obviously nobody (except hopefully the
developer) know how to use it. Or is it still that "alpha" quality that
it's a secret.

Anyhow, could we get a hint from development side how to activate this
compression feature? Or maybe it intended as a chrismas gift? ;-)
Michael

> -Original Message-
> From: Marco Baiguera [mailto:[EMAIL PROTECTED]] 
> Sent: Donnerstag, 30. Januar 2003 11:38
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> in 4.1.19 coyote connector tag i tried the "compressione" 
> parameter but seen no results haw can i check if my page is 
> being compressed (client-side)? 
> thanx
> 
> 
> - Original Message - 
> From: "mech" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Saturday, January 25, 2003 12:33 AM
> Subject: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> > Hi,
> > 
> > I'm currently using Tomcat 4.1.18 for my webapp quite successfully. 
> > Unfortunately one db output page is almost 60KB large (1/3 of it is 
> > only spaces and tabs) so I was thinking about trying Tomcat 
> 4.1.19's 
> > new HTTP 1.1 gzip support.
> > 
> > I installed 4.1.19 and my webapp is running again, but how 
> to enable 
> > gzip support? My Mozilla supports gzip according to header 
> infos. But 
> > how do I find out if my pages really got compressed? Mozilla's page 
> > info still says encoding=ISO... (although I'm not sure if this is 
> > because of the page content). Sorry, but I didn't see/feel any 
> > difference yet ;-) Did I forget something?
> > 
> > Anyhow I wonder how to activate gzip for the connector? Shouldn't 
> > there be some kind of attribute in server.xml to set for  > className="org.apache.coyote.tomcat4.CoyoteConnector"... ? 
> But I saw 
> > nothing in the documentation like "enableGZIP=true".
> > 
> > I also read that there was (is?) a filter servlet available 
> somewhere 
> > to be used for on-the-fly gzip compression. Where can I get 
> some more 
> > info how to obtain it and set it up, if I wouldn't use the http 
> > connector support?
> > 
> > Any ideas about this.
> > Michael
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> additional commands, 
> e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-30 Thread Marco Baiguera
from 4.1.19 LE (windows) default server.xml



i guess the "compression" parameter could enable gzip compression.
setting to "on" has no effect. 
later i'll try compression="gzip"




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-30 Thread mech
I just downloaded the connectors source... (i never thought i would do
that...)

After having a glimpse at the code I can tell the following:

you can set an attribute "compression" to either "on", "off" or "force"

I don't know what the class FakeOutputStream in the
GZipOutputFilter.java might be by now...

Anyway... Let's try brute "force"... Maybe something happens. ;-)
Although somewhere in the code it says that "force" was just for testing
purposes... and seems to be not 100% anyway yet... Guess that's why it's
"alpha".

Michael


> -Original Message-
> From: Marco Baiguera [mailto:[EMAIL PROTECTED]] 
> Sent: Donnerstag, 30. Januar 2003 15:57
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Tomcat 4.1.18/19 - How to activate gzip support?
> 
> 
> from 4.1.19 LE (windows) default server.xml
> 
>  className="org.apache.coyote.tomcat4.CoyoteConnector" 
> acceptCount="100" bufferSize="2048" 
>  compression="off" connectionTimeout="2" debug="0" 
> disableUploadTimeout="true" enableLookups="true" 
>  maxKeepAliveRequests="100" maxProcessors="75" 
> minProcessors="5" port="8080" 
>  
> protocolHandlerClassName="org.apache.coyote.http11.Http11Proto
> col" proxyPort="0" 
>  redirectPort="8443" scheme="http" secure="false" 
> tcpNoDelay="true" useURIValidationHack="false">
> 
> i guess the "compression" parameter could enable gzip 
> compression. setting to "on" has no effect. 
> later i'll try compression="gzip"
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]