JCLCheck REST API startup failed: Could not resolve placeholder 'Port' in value "${Port}"
search cancel

JCLCheck REST API startup failed: Could not resolve placeholder 'Port' in value "${Port}"

book

Article ID: 433470

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

JCLCheck REST API startup failed.  Errors found in SYSOUT: 

-yyyy-mm-dd hh:mm:ss  WARN 67109293 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during
  context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with
 name 'lifeCycleLogger': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not
 resolve placeholder 'Port' in value "${Port}"
 yyyy-mm-dd hh:mm:ss ERROR 67109293 --- [           main] o.s.boot.SpringApplication               : Application run failed

Resolution

Add the REST server port to the apiml definition as follows: 

server:
    address: host.name.net
    port: xxxxx << REST server port number
...
apiml:
    enabled: true
    service:
    hostname: host.name.net
      serviceIpAddress: xx.xxx.xx.xx
       port: xxxxx  << REST server port number