title: Groovy/Grails cannot load oracle.jdbc.driver.OracleDriver
body: <p>I am trying to test a grails app connecting to a sql server, for now, I am using one of my own. This is my datasource.groovy</p>
  
  <pre><code>    dataSource {
          configClass = GrailsAnnotationConfiguration.class
          pooled = true
          driverClassName = "oracle.jdbc.driver.OracleDriver"
          dialect = "org.hibernate.dialect.Oracle10gDialect"
          dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
          url = "jdbc:oracle:thin:@127.0.0.1:1521/xe"
          username = "blah"
          password = "blah"
          properties {
              validationQuery="select 1 from dual"
              testWhileIdle=true
              timeBetweenEvictionRunsMillis=60000
          }
      }
  </code></pre>
  
  <p>I have borrowed this code from a different app, just changing the url and user/password.  The other app runs fine, but my app throws a long exception, which boils down to this </p>
  
  <pre><code>Caused by SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
  stack trace
  Caused by ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  </code></pre>
  
  <p>I have copied ojdbc6.jar into my app lib/ but I am afraid I am lost on what to do next.</p>
  
  <p><strong>EDIT</strong> I have updated <code>oracle.jdbc.driver.OracleDriver</code> to <code>oracle.jdbc.OracleDriver</code>, but no progress</p>