title: Clojure Lein can't find Oracle JDBC Driver
body: <p>I am trying to connect to an Oracle DB using Clojure/Lein.</p>
  
  <p>I downloaded the ojdbc.jar from here:
  <a href="http://mirrors.ibiblio.org/maven/mule/dependencies/maven1/oracle-jdbc/jars/" rel="nofollow">http://mirrors.ibiblio.org/maven/mule/dependencies/maven1/oracle-jdbc/jars/</a></p>
  
  <p>I then installed it to my local repo using:</p>
  
  <pre><code>mvn install:install-file -Dfile=C:\dev\tools\ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.2.0.5 -Dpackaging=jar -DgeneratePom=true
  </code></pre>
  
  <p>My project.clj looks like this:</p>
  
  <pre><code>(defproject spike "0.1.0-SNAPSHOT"
    :description "spike"
    :url "http://example.com/FIXME"
    :license {:name "Eclipse Public License"
              :url "http://www.eclipse.org/legal/epl-v10.html"}
    :dependencies [[org.clojure/clojure "1.5.1"]
                  [org.clojure/java.jdbc "0.3.0-alpha4"]
                  [compojure "1.1.5"]
                  [ring/ring-json "0.1.2"]
                  [oracle/classes12dms "9.0.4"]
                  [com.oracle/ojdbc14 "9.2.0.5"]
          ]
  
    :plugins [[lein-ring "0.8.5"] [lein-deps-tree "0.1.2"]]
    :ring {:handler spike.handler/app}
     :repositories [["internal" "http://xxx:8080/artifactory/repo"] 
                   ["jboss" "https://repository.jboss.org/nexus/content/groups/public"]
                   ["jboss-dep" "https://repository.jboss.org/nexus/content/repositories/deprecated"] ]
  
    )
  </code></pre>
  
  <p>And the accessing spikeDb.clj looks like this:</p>
  
  <pre><code>(ns spike.spikeDb
    (:require [clojure.java.jdbc :as jdbc]
              [clojure.java.jdbc.sql :as sql])
    (:import  java.sql.Types))
  
  (def devdb {:classname "oracle.jdbc.driver.OracleDriver"
              :subprotocol "oracle"
              :subname "thin:xxx/xxx@xxx:1528/xxx"})
  
  (defn get-xxx [id]
   (jdbc/query devdb
     (sql/select [:TITLE :DESCRIPTION]
               :XXX (sql/where {:CODE id}))))
  </code></pre>
  
  <p>I load the server using </p>
  
  <pre><code>lein ring server
  </code></pre>
  
  <p>But when I navigate to that page I get this:</p>
  
  <pre><code>java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:xxx/xxx@xxx:1528/xxx
  DriverManager.java:604  java.sql.DriverManager.getConnection
  DriverManager.java:190  java.sql.DriverManager.getConnection
  jdbc.clj:206    clojure.java.jdbc/get-connection
  jdbc.clj:628    clojure.java.jdbc/db-with-query-results*
  jdbc.clj:646    clojure.java.jdbc/query
  RestFn.java:425 clojure.lang.RestFn.invoke
  spikeDb.clj:13  spike.spikeDb/get-xxx
  </code></pre>
  
  <p>What am I doing wrong??! </p>