weavejester / lein-ring

Ring plugin for Leiningen
Eclipse Public License 1.0
501 stars 100 forks source link

Replacing functions cause lein ring uberwar to fail #132

Closed bstitt79 closed 10 years ago

bstitt79 commented 10 years ago

Here is an example warning/exception pair that I get during an uberwar build: WARNING: boolean already refers to: #'clojure.core/boolean in namespace: utiliti es.state-machine, being replaced by: #'utilities.state-machine/boolean Exception in thread "main" java.lang.ExceptionInInitializerError, compiling:(ser vlet.clj:1:5)

I could comment out the function and uberwar would work. Here is my version info: Leiningen 2.5.0 on Java 1.7.0_67 Java HotSpot(TM) 64-Bit Server VM

weavejester commented 10 years ago

Have you added a line like:

(:refer-clojure :exclude [boolean])

To your ns declaration?

bstitt79 commented 10 years ago

It appears that corrected it. Will you still treat this as an issue considering what I had before was legal clojure that works in the repl and in uberjar?

weavejester commented 10 years ago

It's not strictly legal Clojure. It works in the REPL, but fails if you try to AOT compile the file, which is what Lein-Ring does.

bstitt79 commented 10 years ago

Gotcha. Thanks for the quick turn around. I appreciate your help.