Error loading datasources.yml EDC5129I No such file or directory
search cancel

Error loading datasources.yml EDC5129I No such file or directory

book

Article ID: 282137

calendar_today

Updated On:

Products

IDMS

Issue/Introduction

IDMS Rest API Startup fails with: 

JVMJZBL2999W Could not set current directory to: /.../CAPKG/idms_rest_api/idms_1.1.0/idmsapi-1.1.0/bin/idmsapi-1.1.0.jar
 ERROR Error loading data sources: java.io.FileNotFoundException: config/datasources.yml (EDC5129I No such file or directory.

Unsatisfied dependency BeanCreationException:nested exception is org.zowe.apiml.exception.ServiceDefinitionException: URL http://${apiml.service.hostname}:10180 contains unknown

Cause


 The problem is this incorrect format for setting of PWD:
 export PWD=/.../.../idms_rest_api/idms_1.1.0/idmsapi-1.1.0/bin/idmsapi-1.1.0.jar

Resolution

The export PWD= path was incorrect and it picked up the wrong application.yml file.

The export PWD= path should be pointing to the directory of the IDMS API 

For example: 

export PWD=/.../.../idms_rest_api/idms_1.1.0/idmsapi-1.1.0





Additional Information