Can't require clj-webdriver.firefox before requiring taxi #75

Closed
pgr0ss opened this Issue Sep 13, 2012 · 1 comment

Projects

None yet

2 participants

@pgr0ss

If I try to require clj-webdriver.firefox before requiring taxi, I get this error:

ClassNotFoundException clj_webdriver.driver.Driver java.net.URLClassLoader$1.run

I made a new folder called foo, with a new project.clj:

(defproject foo "1.0.0-SNAPSHOT"                             
            :dependencies [[org.clojure/clojure "1.4.0"]     
                           [clj-webdriver "0.6.0-alpha11"]]) 

Then I ran:

$ lein repl                                                                                  
REPL started; server listening on localhost port 37543                                                     
user=> (require 'clj-webdriver.firefox)                                                                    
ClassNotFoundException clj_webdriver.driver.Driver  java.net.URLClassLoader$1.run (URLClassLoader.java:202)

This works, though:

$ lein repl                             
REPL started; server listening on localhost port 52643
user=> (require 'clj-webdriver.taxi)                  
nil                                                   
user=> (require 'clj-webdriver.firefox)               
nil                                                   
@semperos semperos closed this in afcbdd2 Sep 21, 2012
@semperos
Owner

The core issue was that I had imported a Clojure record in the clj-webdriver.cache namespace, but did not also require the same namespace in which that record was defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment