War file fails to deploy in Openshift

Solution Verified - Updated -


  • 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)"'.


  • Openshift Online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In