I am having an xml which will connect to tfs through https connection to get latest files from it. I am trying to run this as ant task invoked from my java scheduler. When i try to invoke it I am getting the following error message :
An error occurred: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
But if i invoke the ant task from a bat file directly, it is working fine without any issues.
Kindly help me out on how to handle the execption when invoking from java