ring-clojure / ring

Clojure HTTP server abstraction
MIT License
3.77k stars 520 forks source link

Joda classnotfound on 1.8.0 #383

Closed mmmdreg closed 4 years ago

mmmdreg commented 4 years ago

I can see explicit joda/clj-time dependency was removed as part of #358, released in 1.8.0.

My usage of cookies is only via ring-defaults (wrap-defaults (assoc api-defaults :cookies true)).

For some reason, it fails when loading ring.middleware.session (which loads r.m.cookie), with ClassNotFoundException: org.joda.time.DateTime.

I have tried:

Since the last test (with vendored ring-core) works, I can’t see why it doesn’t work when depended on via maven.

Since I am not actually using joda, does anyone have any ideas that don’t involve requiring joda?

weavejester commented 4 years ago

Hi, sorry for the late reply. Could you possibly set up an example repository that demonstrates the problem? It's hard to determine the issue without some sample code that can reproduce it.

mmmdreg commented 4 years ago

Can't seem to reproduce this at home so will close for now. I will investigate my work set up a bit more to see if I can figure it out.

mmmdreg commented 4 years ago

Novice error. There was a stale ‘classes’ lying around on the deps src path.

weavejester commented 4 years ago

Good to know it was a false alarm. That's tripped up me before as well.

jngbng commented 4 years ago

I had the same problem, but resolved after lein clean.