I am trying to hit a http (not https) url, and getting error like 'SunCertPathBuilderException: Unable to find valid certificate path to requested target'. I know if it is https communication, I can insert the public cert of the server to java cacerts file, but I am trying to hit an http url.
a. Why am I getting this error for http?
b. How can I resolve this.
Thanks in Advance