Hi Christopher,

Inside the gz file is a java jar file that was compressed using pack 200 
compression using an ant task.

I was able to get jnlpdownloadservlet installed (comes with jdk) and working on 
Tomcat 6.0.20. Also, just in case I added an line to my jnlp file to support 
download of the gz files even though that tag is only supported via jre 6u10 
and above. This new feature for jre 6u10 and above supposidly does not require 
the servlet running in Tomcat.

So for now I am using the only way I could find to work with pack 200 
compressed files.

Gee the things I let you Tomcat folks talk me into :-) This was an additional 
task in order to move from the Apache Web Server to Tomcat to serve java web 
start apps.

Many Thanks,
-Tony

--- On Mon, 10/19/09, Christopher Schultz <ch...@christopherschultz.net> wrote:

> From: Christopher Schultz <ch...@christopherschultz.net>
> Subject: Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. 
> How?
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Monday, October 19, 2009, 1:26 PM
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Tony,
> 
> On 10/19/2009 7:18 AM, Tony Anecito wrote:
> > I am serving up pack 200 conpressed files in Tomcat
> and getting an
> > error about support. The error is:
> >
> > java.io.IOException: Invalid jar file
> >     at
> com.sun.deploy.net.HttpDownloadHelper.download(Unknown
> Source)
> >     at
> com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown
> Source)
> > 
> > In apache web server I needed to set it up to serve
> pack 200 jars by
> > setting the following in the config file.
> > 
> > How would I do this for Tomcat 6.0.20?
> > 
> > <Files *.pack.gz>
> >     AddEncoding pack200-gzip .jar
> >     RemoveEncoding .gz
> > </Files>
> 
> Note that you are just messing with MIME types here by
> setting
> Content-Type headers in the HTTP response: mod_mime is not
> actually
> decompressing your .gz file and re-encoding it into a .jar
> file.
> 
> I'm not sure I understand what you've got and what you are
> trying to
> serve. Do you have a .jar file or do you have a .gz file?
> If it's a .gz
> file, what (single) file is inside of it?
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkrcvWcACgkQ9CaO5/Lv0PBliQCfbwh007oy9U8UCVhWqIfL1b7W
> KUEAoIs61XyTOMklRo4WzYA56v3OQjuA
> =C09u
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to