title: grails 2.3.7 connect to remote postgresql server
body: <p>In my BuildConfig.groovy</p>
  
  <p>I have :</p>
  
  <pre><code>    dependencies {         
  runtime 'org.postgresql:postgresql:9.3-1100-jdbc41'
  }
  </code></pre>
  
  <p>In my DataSource.groovy</p>
  
  <p>I have :</p>
  
  <pre><code>dataSource {
  
  pooled = true
  driverClassName = "org.postgresql.Driver"
  dialect=org.hibernate.dialect.PostgreSQLDialect
  
  hibernate {
      cache.use_second_level_cache=true
      cache.use_query_cache=true
      cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
  
  }
  // environment specific settings
  environments {
  development {
  dataSource {
  
              dbCreate = "create-drop" // one of 'create', 'create-drop','update'
              url = "jdbc:postgresql://ip:5432/security_dev"
              username = "uname"
              password = "pwd"
          }
      }
      test {
          dataSource {
              dbCreate = "create-drop" // one of 'create', 'create-drop','update'
              url = "jdbc:postgresql://ip:5432/security_dev"
              username = "uname"
              password = "pwd"
  
          }
      }
      production {
          dataSource {
              dbCreate = "update" // one of 'create', 'create-drop','update'
              url = "jdbc:postgresql://ip:5432/security_dev"
              username = "uname"
              password = "pwd"
          }
  
      }
  }
  }
  </code></pre>
  
  <p>Here are the error message</p>
  
  <pre><code>2014-04-08 15:02:48,390 [localhost-startStop-1] ERROR pool.ConnectionPool  - Unable to create initial connections of pool.
  Message: Driver:org.postgresql.Driver@afd862b returned null for URL:jdbc:h2:mem:grailsDB;MVCC=TRUE;LOCK_TIMEOUT=10000
      Line | Method
  -&gt;&gt;  262 | run       in java.util.concurrent.FutureTask
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  |    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    744 | run       in java.lang.Thread
  Error |
  2014-04-08 15:02:48,708 [localhost-startStop-1] ERROR pool.ConnectionPool  - Unable to create initial connections of pool.
  Message: Driver:org.postgresql.Driver@30535975 returned null for URL:jdbc:h2:mem:grailsDB;MVCC=TRUE;LOCK_TIMEOUT=10000
      Line | Method
  -&gt;&gt;  262 | run       in java.util.concurrent.FutureTask
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  |    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    744 | run       in java.lang.Thread
  Error |
  2014-04-08 15:02:48,723 [localhost-startStop-1] ERROR pool.ConnectionPool  - Unable to create initial connections of pool.
  Message: Driver:org.postgresql.Driver@563105a6 returned null for URL:jdbc:h2:mem:grailsDB;MVCC=TRUE;LOCK_TIMEOUT=10000
      Line | Method
  -&gt;&gt;  262 | run       in java.util.concurrent.FutureTask
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  |    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    744 | run       in java.lang.Thread
  |Server running. Browse to http://localhost:8080/Postgresql_Grails_2.3.7
  </code></pre>
  
  <p><strong>This configuration works for grails 2.2.4</strong></p>
  
  <p>What I have to do to make it work under grails 2.3.7?</p>
  
  <p>Thanks in advance</p>