title: Grails SqlException for connection URL
body: <p>I have a Grails app that is throwing an exception when I deploy it as a war. The exception doesn't make any sense, because I don't have the Grails in-memory DB configured in my Datasource.groovy file. Below is the exception and my datasource.groovy file. Can anyone tell me why it keeps throwing this exception? I have run <code>grails clean</code> followed by <code>grails war</code> several times. Also note that I do have the Oracle driver downloaded and that the app works just fine on my development machine. Thanks.</p>
  
  <p>Exception:</p>
  
  <pre><code>2013-07-22 11:41:30,265 [http-bio-8080-exec-9] ERROR StackTrace  - Full Stack Trace:
  java.sql.SQLException: No suitable driver
      at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
  2013-07-22 11:41:30,265 [http-bio-8080-exec-9] ERROR StackTrace  - Full Stack Trace:
  org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'oracle.jdbc.pool.OracleDataSource' for connect URL 'jdbc:h2:mem:grailsDB;MVCC=TRUE;LOCK_TIMEOUT=10000'
      at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
  Caused by: java.sql.SQLException: No suitable driver
      at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
      ... 2 more
  </code></pre>
  
  <p>DataSource.groovy:</p>
  
  <pre><code>dataSource {
      pooled = true
      driverClassName = "oracle.jdbc.pool.OracleDataSource"
      dialect = "org.hibernate.dialect.Oracle10gDialect"
      username = "user"
      password = "password"
  }
  hibernate {
      cache.use_second_level_cache = true
      cache.use_query_cache = false
      cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
  }
  // environment specific settings
  environments {
      development {
          dataSource {
              dbCreate = "" // one of 'create', 'create-drop', 'update', 'validate', ''
              url = "jdbc:oracle:thin:@localhost:DB"
          }
      }
      test {
          dataSource {
              dbCreate = ""
              url = "jdbc:oracle:thin:@localhost:DB"
          }
      }
      production {
          dataSource {
              dbCreate = ""
              "jdbc:oracle:thin:@localhost:DB"
              pooled = true
              properties {
                 maxActive = -1
                 minEvictableIdleTimeMillis=1800000
                 timeBetweenEvictionRunsMillis=1800000
                 numTestsPerEvictionRun=3
                 testOnBorrow=true
                 testWhileIdle=true
                 testOnReturn=true
                 validationQuery="SELECT 1"
              }
          }
      }
  }
  </code></pre>