Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

corrupted jar file exception.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic