Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/19/2009 4:41 PM, Tony Anecito wrote: > Inside the gz file is a java jar file that was compressed using pack > 200 compression using an ant task. So all you should need to do is define a MIME type for .pack.gz. I suppose using "AddEncoding pack200-gzip .pack.gz" is good enough (note that this is different from what you had). You should be able to serve this directly from Apache httpd: Tomcat is not required. > 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. Tomcat should never be required. > 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. I don't understand why Tomcat makes any difference, here. httpd ought to be able to serve a static file with a Content-Encoding header without any problems. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrc1XIACgkQ9CaO5/Lv0PBnJgCcDGgn5aPEGLuUrQMBKei1K5Ek XkoAoL3QJtZuMfbn7rj+czKWNnbxefT8 =TBKE -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
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 wrote: > From: Christopher Schultz > Subject: Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. > How? > To: "Tomcat Users List" > 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? > > > > > > AddEncoding pack200-gzip .jar > > RemoveEncoding .gz > > > > 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
Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
-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? > > > AddEncoding pack200-gzip .jar > RemoveEncoding .gz > 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
Re: Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
Looks like serving up a simple .gzip is more complex than I originally thought. Maybe I am wrong but it looks as if to serve up those files for a java web start app requires a JnlpDownloadServlet class and a bit of configuration. Is there any other simpler way with Tomcat? Thanks, -Tony --- On Mon, 10/19/09, Tony Anecito wrote: > From: Tony Anecito > Subject: Tomcat 6.0.20 support for serving via http java pack 200 jars. How? > To: "Tomcat Users Group" > Date: Monday, October 19, 2009, 5:18 AM > Hi All, > > 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? > > > AddEncoding pack200-gzip .jar > RemoveEncoding .gz > > > Thanks, > -Tony > > > > > - > 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
Tomcat 6.0.20 support for serving via http java pack 200 jars. How?
Hi All, 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? AddEncoding pack200-gzip .jar RemoveEncoding .gz Thanks, -Tony - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org