my dog learned polymorphism*
The moose likes JNLP and Web Start and the fly likes corrupted jar file exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "corrupted jar file exception." Watch "corrupted jar file exception." New topic
Author

corrupted jar file exception.

Ray Kumar
Greenhorn

Joined: Jan 22, 2002
Posts: 17
Hi, Our application uses Webstart to launch applet. Application throwing "Corrupted jar xxx.jar file and unable to launch application" exception when we use 'HTTPS' protocol and resources are secured (URL restricted - form based authentication (cookies)).

It is working with 'HTTP' and resources are secured (URL restricted - form based authentication (cookies)).

It is also working with 'HTTPS' when no URL authentication( form based).

*All jar files including applet one are signed.

Environment : WAS4.x (Linux),JRE1.3.1, Jre/Webstart 1.4.2 on the client side (browser/user machine).

- Has anyone seen this problem before ?
- I appreciate any help on this.
Cristian Negresco
Ranch Hand

Joined: Sep 15, 2001
Posts: 182
Hi,

Althought jws can handle https is has no clue about the authentication cookie the browser is holding. So, you must do a "hole" an mark the jars as unprotected. Otherwise when jws tries to download the jars it will receive the login page back tries to interpret that as a jar, obviously fails - "Corrupted jar error.".

BR,
Cristian
Ray Kumar
Greenhorn

Joined: Jan 22, 2002
Posts: 17
Thanks for the reply.

My jars are protected(either case HTTP or HTTPS) site needs authentication. I was wondering, Why it is working when I use HTTP, still jars requires authentication. User always login first when they hit the site, then they click on 'Launch button' to launch the jnlp file/jar downloads. Any thoughts ???

Thanks in advance
 
 
subject: corrupted jar file exception.
 
Similar Threads
ProJavaFX examples
How can I make use of WebStart?
Test 340 Answers
Passed 700,701 and 340 last Thursday
answer for IBM 340 WAS 5.0 Admin?