I have a small site that I created using the Play platform, which I am trying to run on an EC2 server against an Amazon RDS instance. I can run the application on my machine against an RDS instance, and everything works fine. But when I deploy it on my EC2 server, it gets this error:
The last packet successfully received from the server was 1,282,977,731,085 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
at play.db.DBPlugin.onApplicationStart (DBPlugin.java:87)
at play.Play.start (Play.javahaps81)
at play.Play.init (Play.java:247)
at play.server.Server.main (Server.java:85)
Caused by: java.net.ConnectException: Connection refused
My first thought was that it was some kind of security setting, but I have a Spring based application running on Tomcat on the same EC2 server connecting to the same RDS instance with the same username and password, and it It works just fine, only the Play application has connection problems.
It seems I canβt explain why this is happening, or ideas on how to fix it.
Has anyone seen anything like this before?
java amazon-ec2 amazon-rds playframework
Aaron
source share