Skip to main content

Update 10 and pack200: what's the secret?

8 replies [Last post]
qu0ll
Offline
Joined: 2006-12-09
Points: 0

What's the secret in getting pack200 to work with Update 10 applets? I have an extremely simple example applet that does nothing more than print "Hello World" to the console and I am trying to get pack200 to work with it.

Everything works fine until I remove the applet1.jar and leave only the .pack.gz version. The result is a ClassNotFoundException for the applet concerned. The documentation indicates that the first attempt to download will be the .pack.gz version and the .jar version should only be downloaded if the packed version is unavailable. Well I am not seeing that behaviour. It seems the .jar version has to be there too.

I have attached the extremely trivial HTML and applet JAR. Can someone please try it and show me how to get it to work? Maybe it is just that the JAR has to be there too but then I can't be sure that the packed version is actually being downloaded ever.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rogyeu
Offline
Joined: 2006-07-30
Points: 0

Hi Qu0ll,

On the machine where you can successfully deploy and run your pack200 apps. Will you be able to deploy them on either one (Win2003 or CentOS) and try to access them through Vista?

Are you using 32 or 64 bit?

Thanks,
Roger Y.

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Hi Roger,

I have done extensive testing and I have determined that the problem is not with Vista per se but with IE 7. I am unable to access the applet (which is deployed on a GlassFish v2 ur2 server) using IE 7 when the applet server is deployed on any platform including Vista, Server 2003 and CentOS. I am able to access the same applet using FireFox 3 and Opera 9.5 on any of those platforms.

Clearly there is a problem with IE 7 accessing applets compressed with pack200 when the originals JARs are not available. This indicates that IE 7 is incapable of downloading the .pack.gz versions of the JARs even when Update 10 of JRE 6 is installed.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

rogyeu
Offline
Joined: 2006-07-30
Points: 0

Hi Qu0ll,

Thanks for reporting the issue. CR 6720994 is filed. It may take a day or 2 to see the issue in the external database.

Thanks,
RY

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Thanks Roger,

You might like to also look at IE 6 as it appears to suffer the same problem on a Windows XP machine I tested.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

rogyeu
Offline
Joined: 2006-07-30
Points: 0

It works for me. "Hello World!" was printed to the output (Java Console).

Did you check the file permission? Are you using Firefox 3 or IE?

-- RY

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Hmm, very strange then. I have tried both IE 7 and FF 3 on Vista.

Do you think it might be a Vista issue? What else could explain this? It really just doesn't work on my machine.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

qu0ll
Offline
Joined: 2006-12-09
Points: 0

I do believe now that it is a bug in the Vista implementation of Update 10 as I have got it to work unchanged on Windows Server 2003 and CentOS linux. It's only on two Vista machines where it fails.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

cowwoc
Offline
Joined: 2003-08-24
Points: 0

Please file a bug report.