Error processing application.yml

book

Article ID: 224261

calendar_today

Updated On:

Products

CA Workload Automation CA 7 Edition

Issue/Introduction

 Tring to configure Zowe interface with CA-7 REST API 12.1.02 

I see the following error that shows in ca7webswervices.log:

2021-09-16 12:51:07,400 ERROR org.springframework.boot.SpringApplication [main] Application run failed
org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
 in 'reader', line 64, column 1:
    ${apiml.service.scheme}://${apim ... 
    ^
could not find expected ':'
 in 'reader', line 65, column 18:
    contextPath: /${apiml.service.serviceId}

Environment

Release : 12.1

Component :

Resolution

There is a line break. In the YAML syntax, the "baseUrl:" ends up being another section heading rather than a property name. The basUrl should look like this:

      baseUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}