Why Java Web Start doesn't support Pack200 out-of-the-box?

Hello All,

Why Java Web Start doesn't support Pack200 out-of-the-box? I was hoping that Java 6 would make things easier by adding direct support for Pack200 in Java Web Start and JNLP without needing to use servlets, etc.? All my clients are Java 5 or above so I can't push the Pack200 compressed version of the jar to every single one of them and there is no selection process needed. But I can't do it because of the servlet or complex Apache server setup requirement (it would be a headache to get customers' web server admins to set up Apache or whatever web server that way).

My question is why is there unwillingness to add Pack200 support directly to Java Web Start and JNLP so that you can start Pack200 compressed jars just like you would start any jar using Java Web Start? Is te a technical problem?

Thank you,

Mete Kural

[867 byte] By [mkurala] at [2007-11-26 18:28:13]
# 1

Hallo,

I didn磘 try it, but the webstart FAQ磗 read:

Can I use Pack200 compression with the JnlpDownloadServlet?

Yes. The JnlpDownloadServlet distributed in the samples directory of the JDK now supports Pack200. If you deploy yourfile.jar along with yourfile.jar.pack.gz the packed file will be downloaded when the client is running Java Web Start 1.5.0 or later.

http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/faq.html#217

For further information you may want to look at

http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html#pack200

The configuration of the server and the the servlet (as described in the second link) is as easy as it seems.

I got it working on the first try and it was my first experience with websevers at all.

Bye Schippe

Message was edited by:

Schippe

Schippea at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 2

Hello Schippe,

But regular web servers can't run servlets. You need at least Tomcat and my customers don't run Tomcat. It wouldn't make sense for me to tell them to run Tomcat just to be able to start a Java Web Start app. Currently they don't need to run Tomcat to start this Java Web Start app. The requirement to run Tomcat far outweighs the benefit of pack200 for my customers which renders pack200 impractical.

Any other ideas without having to run Tomcat or make complex modification's to Apache web server settings?

Thanks,

Mete

mkurala at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 3

Just for better understanding:

Your customers want to run their own webstart deployment servers to deploy applications on their own?

Not just the webstart clients to download and update applications deployed by you?

If you just want to deploy applications developed by you or your company to a variety of customers, the only one to run a download server (Tomcat with the servlet) is you or your company. The customer just needs a sufficient webstart client.

Bye Schippe

Schippea at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 4
I think I know what you're saying. What you really want is for Java to run pack200 jars. Not a bad idea, but don't know if it will ever happen.
cbaggovaua at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 5
This capability, being able to specify pack file directly in resource href, will be added to Java 7, and backported to a future update to Java 6./Andy
dietz333a at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 6
See http://blogs.sun.com/alanbur/entry/netbeans_jni_webstart_and_apache for some tips of how to do this with 'vanilla' Apache - it's not all that hard
alan_burlisona at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 7
So it is not possible to do something without servlets under IIS ?Ah man, why do we always have to wait for the next jdk version...
martinm1000a at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 8
Could you correct me from the below.<jnlp spec="1.0+" codebase=" http://172.22.90.128/Rel05_01_052"><jar href="iMS\STS-6.jar.pack.gz"/>
bharath-javaa at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 9

Please follow my updated posting in the below thread.

http://forum.java.sun.com/thread.jspa?threadID=5167510&tstart=0

The problem now is

"Unsigned application requesting unrestricted access to system"

do anyone have problem in webstart after updating to 1.6, if you have href as a .jar.pack.gz or any other format other than .jar in your .jnlp?

bharath-javaa at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...
# 10
Is there any news or related bug on this? Do any one face this issue.Where jar href tag in .jnlp file referring to .jar.pack.gz which use to work in java version 1.5.X and below , after updating to 1.6 it fails with signed exception.Is any one there facing this issue?
bharath-javaa at 2007-7-9 6:02:25 > top of Java-index,Desktop,Deploying...