War file fails to deploy in Openshift
Issue
- When trying to deploy a java application below error is seen in logs :
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "System.getenv().get(OPENSHIFT_MYSQL_DB_PORT)"'.
Environment
- Openshift Online
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.