The problem is the usage of expression like ${env.OPENSHIFT_MYSQL_DB_HOST}
.
Those are operating system environment variables and as you can see in the exception that instead of trying to read the values of those system environment variables Spring is trying to turn it into a number.
Try something like #{systemEnvironment[OPENSHIFT_MYSQL_DB_HOST]}
to read the OS environment variables. That's an expression to read system environment variable called OPENSHIFT_MYSQL_DB_HOST
.