I am getting this error while building my spring boot application in Heroku, but when I run it locally in my eclipse, then it works fine.
Comment From: bclozel
I think the java command is not using the repackaged executable jar as it should. See our reference docs and heroku's docs for more on this. If you need more help, please ask on StackOverflow.