Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

malformedUrl exception

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • 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
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic