In reviewing the logs provided the following was noticed:
Exceptions while connecting to MySQL
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
This is a common restriction on MySQL servers to allow connections only from the localhost. You can run the below SQL queries on the MySQL server to widen the restriction on the Gateway database.
USE mysql;
GRANT ALL PRIVILEGES ON 'gatewaydb'.* to root@'%' identified by '%PASSWORD%' WITH GRANT OPTION;
Here, replace 'gatewaydb' with the gateway database name and %PASSWORD% with the root password.