• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

malformedUrl exception

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My program tries to access a servlet in an https envronment and produce an error java.net.MalformedURLException unknown protocol https.
I also set property on top the program

System.setProperty("javax.net.ssl.trustStore","C:/j2sdk1.4.0_01/jre/bin/test");
System.setProperty("javax.net.ssl.trustStorePassword","test123");

where test is the keystore.

What else should I do to make my program accept https protocol. Thanks
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

you probably need to register a handler for the HTTPS protocol and (depending on your java version) add some jar files to your classpath. perhaps this article helps:
http://www.javaworld.com/javaworld/javatips/jw-javatip96.html

cheers

pascal
 
reply
    Bookmark Topic Watch Topic
  • New Topic