weavejester/hiccup — Issue #41: lein ring server throws error due to older version of hiccup
Author: sathish316
Created: 2012-03-09 19:41:16+00:00
State: open

I'm using hiccup-1.0.1-beta1 with Clojure 1.3.0 and compojure 1.0.1

```
(defproject Tasks "1.0.0-SNAPSHOT"
:description ""
:dependencies [[org.clojure/clojure "1.3.0-beta1"]
[compojure "1.0.1"]
[hiccup "1.0.0-beta1"]]
:dev-dependencies [[lein-ring "0.5.4"]]
:ring {:handler tasks.core/app})
```

Using hiccup 1.0.1-beta1 with ring handler results in the below error:

```
Caused by: java.lang.IllegalAccessError: defelem does not exist
at clojure.core$refer.doInvoke(core.clj:3754)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_lib.doInvoke(core.clj:5243)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5262)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:604)
at clojure.core$use.doInvoke(core.clj:5354)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at hiccup.page_helpers$eval430$loading__4531__auto____431.invoke(page_helpers.clj:1)
at hiccup.page_helpers$eval430.invoke(page_helpers.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6406)
```

This stackoverflow question says, it's because of ring-devel using an older version of hiccup-0.3.7.jar in lib/dev

http://stackoverflow.com/questions/9572150/hiccup-1-0-0-beta1-error

After excluding hiccup in lein-ring:

```
:dev-dependencies [[lein-ring "0.5.4" :exclusions [hiccup]]]
```

I'm still getting an error

```
Caused by: java.io.FileNotFoundException: Could not locate hiccup/page_helpers__init.class or hiccup/page_helpers.clj on classpath:
at clojure.lang.RT.load(RT.java:430)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4636.invoke(core.clj:5377)
at clojure.core$load.doInvoke(core.clj:5376)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5191)
at clojure.core$load_lib.doInvoke(core.clj:5228)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5262)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:604)
at clojure.core$use.doInvoke(core.clj:5354)
at clojure.lang.RestFn.invoke(RestFn.java:482)
at ring.middleware.stacktrace$eval96$loading__4531__auto____97.invoke(stacktrace.clj:1)
at ring.middleware.stacktrace$eval96.invoke(stacktrace.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6406)

```

Can you please fix this issue?