Skip to main content

Web Start, Pack 200 and Tomcat best way to work together

2 replies [Last post]
tdanecito
Offline
Joined: 2005-10-10

Hi All,

I copied my folder with a ll my files that worked great under Apache to the tomcat directory but when downloading via jnlp I get:
java.io.IOException: Invalid jar file
at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)

I have a feeling that I am supposed to use the jnlpdownloadservlet and I have found references to the install.

So my question is this the only way to get Web Start to work with Tomcat without Apache? I am onloy serving up the gz files unless Web Start needs something only the servlet can provide.

Thanks,
-Tony

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kazssym
Offline
Joined: 2007-04-18

You have probably not configured Tomcat to handle those pack.gz files as "Content-Encoding: pack200-gzip," have you? If not configured as such, Java Web Start may think they are plain jar or unidentified binary files according to the Content-Type header field.

See http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment... for how the Content-Encoding header is used in JWS.

tdanecito
Offline
Joined: 2005-10-10

Thanks. I ended up installing Apache Native plugin and that solved the issue.

-Tony