tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
Date Mon, 19 Oct 2009 19:26:31 GMT
-----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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message