Setting GlassFish-Mysql Connection Pool on Openshift <p>I just created a new application with the DIY cartridge and add a MySQL cartridge to it as well. I also was able to deploy the application online. I cannot use the GlassFish administration console with OpenShift but I need to set up JDBC resources, connection pools. I'm trying to edit the domains.xml of my remote glassfish server using that of my local glassfish server. I'm still unable to connect to the database. This is what I've done so far: </p> <pre><code>&lt;jdbc-connection-pool is-isolation-level-guaranteed="false" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" name="SamplePool" res-type="javax.sql.DataSource"&gt; &lt;property name="User" value="adminvcsHiYw"&gt;&lt;/property&gt; &lt;property name="DatabaseName" value="timetable"&gt;&lt;/property&gt; &lt;property name="serverName" value="127.8.28.2"&gt;&lt;/property&gt; &lt;property name="PortNumber" value="3306"&gt;&lt;/property&gt; &lt;property name="URL" value="jdbc:mysql://127.8.28.2:3306/timetable"&gt;&lt;/property&gt; &lt;property name="Password" value="_R-LrpYIcdUf"&gt;&lt;/property&gt; &lt;/jdbc-connection-pool&gt; </code></pre> <p>This is the output of <code>rhc tail -a appname</code></p> <pre><code> ==&gt; app-root/logs/mysql.log &lt;== 150621 7:55:43 InnoDB: highest supported file format is Barracuda. 150621 7:55:43 InnoDB: Waiting for the background threads to start 150621 7:55:44 InnoDB: 5.5.41 started; log sequence number 1686690 150621 7:55:44 [Note] Server hostname (bind-address): '127.8.28.2'; port: 3306 150621 7:55:44 [Note] - '127.8.28.2' resolves to '127.8.28.2'; 150621 7:55:44 [Note] Server socket created on IP: '127.8.28.2'. 150621 7:55:44 [Warning] 'proxies_priv' entry '@ root@ex-std-node534.prod.rhcloud.com' ignored in --skip-name-resolve mode. 150621 7:55:44 [Note] Event Scheduler: Loaded 0 events 150621 7:55:44 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: ready for connections. Version: '5.5.41' socket: '/var/lib/openshift/5585ff875004465b5500013a/mysql//socket/mysql.sock' port: 3306 MySQL Community Server (GPL) ` </code></pre> <p>What am I doing wrong? Can anyone help?</p>