10

I'm running spring in debug mode, and after struggling to get it to recognize an external properties file I finally got it to do so

Loaded config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'

However right after that line

Skipped (empty) config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'

The thing is though, it isn't empty

Name=ALD-INT
Queues=
QueueManager=whatever
TAS_MQS_PASSWORD=pw
TAS_MQS_USER=name

I'm running spring this way,

pb = new ProcessBuilder().inheritIO().command(java, "-noverify", "-cp", classpath, 
            String.format("-Dspring.config.location=%s", "C:\\Users\\udyj\\git\\hermes-mq-tool.lib\\rte\\application-ALD-INT.properties"),
            clazz.getCanonicalName()
            );

What does the empty config file thing mean?

2
  • 1
    Did you find an answer?
    – Woland
    Commented Jun 3, 2019 at 12:15
  • having the same issue here, dont know why it keeps telling file is empty when is not!
    – cgajardo
    Commented Mar 5, 2020 at 18:03

1 Answer 1

2

This is an open issue

The misleading logging is an unfortunate side-effect of it being performed in a generic location that doesn't (and shouldn't) understand the difference between .properties and .yaml configuration files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.