War file fails to deploy in Openshift

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.