Last active
August 29, 2015 13:56
-
-
Save tomconnors/9261413 to your computer and use it in GitHub Desktop.
project.clj that's threatening my sanity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "main" java.lang.NoClassDefFoundError: clout/core/Route | |
at composur.routes.auth__init.load(Unknown Source) | |
at composur.routes.auth__init.<clinit>(Unknown Source) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:270) | |
at clojure.lang.RT.loadClassForName(RT.java:2098) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5018.invoke(core.clj:5530) | |
at clojure.core$load.doInvoke(core.clj:5529) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5336) | |
at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) | |
at clojure.core$load_lib.doInvoke(core.clj:5374) | |
at clojure.lang.RestFn.applyTo(RestFn.java:142) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$load_libs.doInvoke(core.clj:5413) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$require.doInvoke(core.clj:5496) | |
at clojure.lang.RestFn.invoke(RestFn.java:2793) | |
at composur.routes.user$loading__4910__auto__.invoke(user.clj:1) | |
at composur.routes.user__init.load(Unknown Source) | |
at composur.routes.user__init.<clinit>(Unknown Source) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:270) | |
at clojure.lang.RT.loadClassForName(RT.java:2098) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5018.invoke(core.clj:5530) | |
at clojure.core$load.doInvoke(core.clj:5529) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5336) | |
at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) | |
at clojure.core$load_lib.doInvoke(core.clj:5374) | |
at clojure.lang.RestFn.applyTo(RestFn.java:142) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$load_libs.doInvoke(core.clj:5417) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$require.doInvoke(core.clj:5496) | |
at clojure.lang.RestFn.invoke(RestFn.java:3204) | |
at composur.web_page$loading__4910__auto__.invoke(web_page.clj:1) | |
at composur.web_page__init.load(Unknown Source) | |
at composur.web_page__init.<clinit>(Unknown Source) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:270) | |
at clojure.lang.RT.loadClassForName(RT.java:2098) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5018.invoke(core.clj:5530) | |
at clojure.core$load.doInvoke(core.clj:5529) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5336) | |
at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) | |
at clojure.core$load_lib.doInvoke(core.clj:5374) | |
at clojure.lang.RestFn.applyTo(RestFn.java:142) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$load_libs.doInvoke(core.clj:5413) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$require.doInvoke(core.clj:5496) | |
at clojure.lang.RestFn.invoke(RestFn.java:482) | |
at composur.system$loading__4910__auto__.invoke(system.clj:1) | |
at composur.system__init.load(Unknown Source) | |
at composur.system__init.<clinit>(Unknown Source) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:270) | |
at clojure.lang.RT.loadClassForName(RT.java:2098) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5018.invoke(core.clj:5530) | |
at clojure.core$load.doInvoke(core.clj:5529) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5336) | |
at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) | |
at clojure.core$load_lib.doInvoke(core.clj:5374) | |
at clojure.lang.RestFn.applyTo(RestFn.java:142) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$load_libs.doInvoke(core.clj:5413) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at clojure.core$apply.invoke(core.clj:619) | |
at clojure.core$require.doInvoke(core.clj:5496) | |
at clojure.lang.RestFn.invoke(RestFn.java:551) | |
at user$eval3$loading__4910__auto____4.invoke(user.clj:1) | |
at user$eval3.invoke(user.clj:1) | |
at clojure.lang.Compiler.eval(Compiler.java:6619) | |
at clojure.lang.Compiler.eval(Compiler.java:6608) | |
at clojure.lang.Compiler.load(Compiler.java:7064) | |
at clojure.lang.RT.loadResourceScript(RT.java:370) | |
at clojure.lang.RT.loadResourceScript(RT.java:357) | |
at clojure.lang.RT.maybeLoadResourceScript(RT.java:353) | |
at clojure.lang.RT.doInit(RT.java:461) | |
at clojure.lang.RT.<clinit>(RT.java:329) | |
at clojure.lang.Namespace.<init>(Namespace.java:34) | |
at clojure.lang.Namespace.findOrCreate(Namespace.java:176) | |
at clojure.lang.Var.internPrivate(Var.java:163) | |
at composur.system.<clinit>(Unknown Source) | |
Caused by: java.lang.ClassNotFoundException: clout.core.Route | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) | |
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) | |
... 97 more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject composur "0.1.0-SNAPSHOT" | |
:description "the easiest way to manage the music you write, play, and share" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:uberjar-name "composur-standalone.jar" | |
;:omit-source true | |
:min-lein-version "2.0.0" | |
:dependencies [[org.clojure/clojure "1.5.1"] | |
[org.clojure/clojurescript "0.0-2030" #_"0.0-2156"] | |
[org.clojure/core.async "0.1.267.0-0d7780-alpha"] | |
[ring "1.2.1"] | |
[fogus/ring-edn "0.2.0"] | |
;; I thought perhaps inconsistent clojure + library versions were a problem? | |
;; having :exclusions didn't fix anything. | |
[clout "1.1.0" | |
;:exclusions [org.clojure/clojure] | |
] | |
[compojure "1.1.6" | |
;:exclusions [org.clojure/clojure] | |
] | |
[hiccup "1.0.4"] | |
[http-kit "2.1.16"] | |
[environ "0.4.0"] | |
[com.novemberain/monger "1.7.0"] | |
[com.cemerick/friend "0.2.0" | |
;:exclusions [org.clojure/core.incubator] | |
] | |
[liberator "0.11.0"] | |
[prismatic/dommy "0.1.2"] | |
[cljs-ajax "0.2.3"] | |
[clavatar "0.2.1"] | |
[com.datomic/datomic-pro "0.9.4324"]] | |
:plugins [[lein-cljsbuild "1.0.0-alpha2"] | |
[com.keminglabs/cljx "0.3.2"] | |
[com.cemerick/austin "0.1.3"]] | |
:cljx {:builds [{:source-paths ["src/shared"] | |
:output-path "target/generated/clj" | |
:rules :clj} | |
{:source-paths ["src/shared"] | |
:output-path "target/generated/cljs" | |
:rules :cljs}]} | |
:source-paths ["target/generated/clj" "src/server" ] | |
:profiles { | |
:dev [:base :system :user :provided | |
{:jvm-opts ["-Ddev=true"] | |
:injections [(prn (into {} (System/getProperties)))] | |
:source-paths ["dev"] | |
:dependencies [[org.clojure/tools.namespace "0.2.4"] | |
[org.clojure/java.classpath "0.2.1"] | |
[org.clojure/tools.nrepl "0.2.3"]]}] | |
:production [:base :system :user :provided | |
{:jvm-opts ["-Dprd=true"] | |
;; TODO get rid of the dev source path and these | |
;; dependencies. They're here because they needed | |
;; to be in order for the porject to build. | |
;; ^^^ Ignore this bit. I added these to make uberjar work for the production | |
;; task. | |
:source-paths ["dev"] | |
:dependencies [[org.clojure/tools.namespace "0.2.4"] | |
[org.clojure/java.classpath "0.2.1"] | |
[org.clojure/tools.nrepl "0.2.3"]]}] | |
:uberjar {:aot :all} | |
} | |
:main composur.system | |
;; I just added this. Thought perhaps supplying a classpath in the jar would help? Nope. | |
:manifest { | |
"Class-Path" ~#(clojure.string/join | |
\space | |
(leiningen.core.classpath/get-classpath %)) | |
} | |
:cljsbuild | |
{:builds | |
[{:id "dev" | |
:source-paths ["src/client" "target/generated/cljs"] | |
:compiler {:output-to "resources/public/js/gen-dev/main.js" | |
:output-dir "resources/public/js/gen-dev/out/" | |
:optimizations :none | |
:source-map-path "resources/public/js/gen-dev/" | |
:source-map true}} | |
{:id "prd" | |
:source-paths ["src/client" "target/generated/cljs"] | |
:compiler {:output-to "resources/public/js/gen/main.js" | |
:output-dir "resources/public/js/gen/" | |
:optimizations :advanced | |
:externs ["externs/history.js" | |
"externs/react.js" | |
"resources/public/js/lib/vex.min.js"]}}]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment