Last active
December 15, 2015 02:39
-
-
Save adericbourg/5189037 to your computer and use it in GitHub Desktop.
Trying to get my Play! 2.1 application work on Cloudbees.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The configuration: | |
$ bees config:list -a baz/foo | |
Application Parameters: | |
proxyBuffering=false | |
MYSQL_USERNAME_DB=foo | |
MYSQL_PASSWORD_DB=bar | |
MYSQL_DRIVER=com.mysql.jdbc.Driver | |
MYSQL_URL_DB=jdbc:mysql://ec2-23-21-211-172.compute-1.amazonaws.com:3306/foo | |
Runtime Parameters: | |
java_version=1.7 | |
The logs: | |
Oops, cannot start the server. | |
Configuration error: Configuration error[Cannot connect to database [default]] | |
at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:80) | |
at play.api.Configuration.reportError(Configuration.scala:558) | |
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:251) | |
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:242) | |
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) | |
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) | |
at scala.collection.immutable.List.foreach(List.scala:309) | |
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) | |
at scala.collection.AbstractTraversable.map(Traversable.scala:105) | |
at play.api.db.BoneCPPlugin.onStart(DB.scala:242) | |
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) | |
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:63) | |
at scala.collection.immutable.List.foreach(List.scala:309) | |
at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:63) | |
at play.api.Play$$anonfun$start$1.apply(Play.scala:63) | |
at play.api.Play$$anonfun$start$1.apply(Play.scala:63) | |
at play.utils.Threads$.withContextClassLoader(Threads.scala:18) | |
at play.api.Play$.start(Play.scala:62) | |
at play.core.StaticApplication.<init>(ApplicationProvider.scala:54) | |
at play.core.server.NettyServer$.createServer(NettyServer.scala:228) | |
at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:259) | |
at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:258) | |
at scala.Option.map(Option.scala:145) | |
at play.core.server.NettyServer$.main(NettyServer.scala:258) | |
at play.core.server.NettyServer.main(NettyServer.scala) | |
Caused by: java.sql.SQLException: No suitable driver found for mysql://ec2-23-21-211-172.compute-1.amazonaws.com:3306/foo | |
at java.sql.DriverManager.getConnection(Unknown Source) | |
at java.sql.DriverManager.getConnection(Unknown Source) | |
at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) | |
at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:305) | |
at com.jolbox.bonecp.BoneCPDataSource.maybeInit(BoneCPDataSource.java:150) | |
at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:112) | |
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:244) | |
... 22 more | |
Play server process ID is 16580 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment