GlassFish 3.1 - Connection could not be allocated because: Communications link failure The last packet sent successfully
Here is the full error:
Ping Connection Pool for test is Failed. Ping failed Exception - Connection could not be allocated because: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Please check the server.log for more details.
So, I'm using GlassFish 3.1 and I'm trying to connect from my computer at home to mysql database which is at my college. I set these setting at the admin panel:
Resource type: Javax.sql.DataSource
Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
...And other data like password, username, port etc., which i tried before in MySql Workbench, so I'm sure they work fine.
When I ping, I get the error above. I tried to turn off the firewall and it's not fixing the problem.. If you need any more specific information I will post one, I can also post screenshots if you need.
What could go wrong actually?