clj-webdriver "0.6.0-beta3" and com.cemerick/friend

Visto 115 veces
Saltar al primer mensaje no leído

fern...@code54.com

no leída,
7 abr 2013, 23:50:417/4/13
a clj-we...@googlegroups.com
In case this helps anybody, here's what I run into after going from 0.6.0-beta2 to beta3 in my current project:

Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
        at java.lang.ClassLoader.defineClass1(Native Method)
[...]
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[...]

Looks like the newer versions of webdriver needs a newer xml-apis.

I traced it down to a conflict with [com.cemerick/friend "0.1.4"], which transitively pulls an older xerces/xercesImpl and xml-apis.

So, my fix was to add an exclusion:

    [com.cemerick/friend "0.1.4" :exclusions [xerces/xercesImpl]]


Cheers,
Fer

Mayank Jain

no leída,
8 abr 2013, 4:17:018/4/13
a clj-we...@googlegroups.com
Thanks for sharing.


--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Mieczysław Daniel Dyba

no leída,
5 jul 2013, 0:01:545/7/13
a clj-we...@googlegroups.com
How did you track this down? Thanks for posting your solution. I too am using friend and added the exclusion. Now I can run my tests just fine. I ask how you tracked it down because if I ever encounter a different issue, I'd like to know your methodology. Clojure stack traces are near impossible to debug.

Mayank Jain

no leída,
5 jul 2013, 0:35:165/7/13
a clj-we...@googlegroups.com
If you are using lein older then 2.2.0 you can use lein-pedantic[1].
If your lein version is 2.2.0 or above you can use 


--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Fernando Dobladez

no leída,
5 jul 2013, 7:47:355/7/13
a clj-we...@googlegroups.com
No problem. Thanks.

Don't remember exactly how, but I certainly used `lein deps :tree`, common unix commands  (like `find`, `grep`, `unzip`, etc) and google.

It was not obvious at all (to me at least). That's why I posted it here, hoping it would help others . Glad it saved you time.


Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos