title: playframework 2.0.1: connect to database always fails
body: <p>I just reinstalled my Operating System from Ubuntu 10.04 to 12.04, and I was using play 2.0.1 on ubuntu 10.04, everything was working ok on 10.04, but now with the same play 2.0.1 things messed up and now every time I run the command <code>play "run 80"</code> the server starts but when I hit index page of my app it gives me following exception:</p>
  
  <pre><code>[error] application - 
  
  ! @6bh1b1h5g - Internal server error, for request [GET /] -&gt;
  
  play.api.Configuration$$anon$1: Configuration error [Cannot connect to database [mytestdb]]
      at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:71) ~[play_2.9.1.jar:2.0.1]
      at play.api.Configuration.reportError(Configuration.scala:258) ~[play_2.9.1.jar:2.0.1]
      at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:240) ~[play_2.9.1.jar:2.0.1]
      at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:231) ~[play_2.9.1.jar:2.0.1]
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194) ~[scala-library.jar:0.11.2]
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194) ~[scala-library.jar:0.11.2]
  </code></pre>
  
  <p>and before comming to this forum I double checked that:</p>
  
  <ol>
  <li>mysql is running.</li>
  <li>user has sufficient privileges (by logging this user and run some select commands on this db inside bash terminal).</li>
  <li>my project compiles successfully.</li>
  </ol>
  
  <p>configuration file with some minor changes:</p>
  
  <pre><code># This is the main configuration file for the application.
  # ~~~~~
  
  # Secret key
  # ~~~~~
  # The secret key is used to secure cryptographics functions.
  # If you deploy your application to several instances be sure to use the same key!
  application.secret="*********************************"
  
  # The application languages
  # ~~~~~
  application.langs="en"
  
  # Global object class
  # ~~~~~
  # Define the Global object class for this application.
  # Default to Global in the root package.
  # global=Global
  
  # Database configuration
  # ~~~~~ 
  # You can declare as many datasources as you want.
  # By convention, the default datasource is named `default`
  #
  
  db.mytestdb.url="mysql://user1:user1@127.0.0.1:3306/mytestdb"
  db.mytestdb.driver=com.mysql.jdbc.Driver
  db.mytestdb.user="user1"
  db.mytestdb.pass="user1"
  db.mytestdb.jndiName=mytestdbDS
  
  jpa.default=TESTmytestdb
  jpa.TESTmytestdb=TESTmytestdb
  
  # Logger
  # ~~~~~
  # You can also configure logback (http://logback.qos.ch/), by providing a logger.xml file in the conf directory .
  
  # Root logger:
  logger.root=ERROR
  
  # Logger used by the framework:
  logger.play=INFO
  
  # Logger provided to your application:
  logger.application=DEBUG
  </code></pre>