//because in its implementation it looks for user.dir
// which sometimes can vary based on where vm is launched
// so in this case
//resolve from application path
WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();
ServerEnvironment se = wscImpl.getHabitat().getByContract(ServerEnvironment.class);
File appFile = new File(se.getApplicationRepositoryPath(),serviceRef.getBundleDescriptor().getApplication().getAppName());
if (appFile.exists()) {
retVal = new File(appFile,serviceRef.getWsdlFileUri()).toURL();
} else {
//Fix for 6853656 and 6868695
//In case of appclients the wsdl will be in the classpath