Unable to start springboot app - Resource location must not be null
This might help someone:
Any ssl config could cause this, In my case I had following left over configuration:
server.ssl.protocol=TLS
server.ssl.enabled-protocols=TLSv1.2
removing these fixed the issue.
Adding:
server.ssl.enabled=false
in my application.properties solved the problem. I assume ssl configuration was expected based on the parent boot starter pom?? Again, not sure why this is working fine in a linux VM.
Don't have time to dive deeper into this, maybe someone else can shed a bit more light.
I had been disabling and enabling HTTPS (server.ssl.enabled=true
) but had forgotten to add these back:
server.ssl.key-store=file:///Users/...
server.ssl.key-store-password=******
Might help some one in the future.
It happened to me when I had ssl.enabled : true
but other SSL parameters were not set (because of bad indentation in YAML file). This is how it looks in config/application.yaml when working good.
environments:
production:
server:
port: 9080
ssl:
enabled: true
key-store: /home/peter/app/ucast.rewara.com/ucast.rewara.com.cert.jks
key-store-password: drowssapekaf
key-password: ewerw23121sdsd
key-alias: ucast.rewara.com
grails:
serverURL: "https://ucast.rewara.com:9080"`