clojure - Hiccup not working : FileNotFoundException: Could not locate ../as__init.class or ../as.clj on classpath -


i'm beginning clojure , i'm trying build small web app. wanted try out hiccup doesn't seem working. code below.

project.clj

    (defproject webtest "0.1.0-snapshot"   :description "fixme: write description"   :url "http://example.com/fixme"   :dependencies [[org.clojure/clojure "1.4.0"]                  [compojure "1.1.5"]                  [hiccup "1.0.3"]                  [org.clojure/java.jdbc "0.2.3"]                  [net.sourceforge.jtds/jtds "1.2.4"]                  ]   :plugins [[lein-ring "0.8.2"]             [lein-idea "1.0.1"]]   :ring {:handler webtest.handler/app}   :profiles   {:dev {:dependencies [[ring-mock "0.1.3"]]}}) 

handler.clj

    (ns webtest.handler   (:use compojure.core)   (:require [compojure.handler :as handler]             [compojure.route :as route]             [webtest.content :as pages]             [hiccup.core :as templ]))  (defroutes app-routes   (get "/" [] (templ/html [h1 "hello world"]))   (get "/greeting/:name" [name] (str "<h1>hello " name "</h1>"))   (get "/date/:year/:month/:day" [year month day] (str "<h1>it " month "/" day "/" year "</h1>"))   (route/not-found "not found"))  (def app   (handler/site app-routes)) 

and error is

exception in thread "main" java.io.filenotfoundexception: not locate hiccu p/core/as__init.class or hiccup/core/as.clj on classpath:         @ clojure.lang.rt.load(rt.java:432)         @ clojure.lang.rt.load(rt.java:400)         @ clojure.core$load$fn__4890.invoke(core.clj:5415)         @ clojure.core$load.doinvoke(core.clj:5414) 

a long stack trace follows that. insight i'm doing wrong?

attempting require webtest.content fails me, though rest works fine if remove one:

(ns webtest.handler   (:use compojure.core)   (:require [compojure.handler :as handler]             [compojure.route :as route]             ;[webtest.content :as pages]             [hiccup.core :as templ]))  

the error mention case if there mismatched []s in :require section of handler.clj's ns form though not caused show it.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -