eclipse - lein ring uberwar command NoClassDefFoundError -
i'm having hard time war generated using eclipse.
first, i'm trying deploy clojure app aws via elastic beanstalk. i'm open suggestions on how (ie via lien beanstalk) wanted keep simple , create war upload/deploy elastic beanstalk (on tomcat platform). elastic beanstalk sample app running.
i'm using windowsx64, eclipse luna , jre8 counterclockwise 0.27.1
i created project using eclipse , compojure leinengen template. here project clj file:
(defproject aws-test "0.1.0-snapshot" :description "fixme: write description" :url "http://example.com/fixme" :dependencies [[org.clojure/clojure "1.6.0"] [compojure "1.1.8"]] :plugins [[lein-ring "0.8.11"]] :ring {:handler aws-test.handler/app} :profiles {:dev {:dependencies [[javax.servlet/servlet-api "2.5"] [ring-mock "0.1.5"]]}})
here code in handler.clj file:
(ns aws-test.handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [compojure.route :as route])) (defroutes app-routes (get "/" [] "hello world") (route/resources "/") (route/not-found "not found")) (def app (handler/site app-routes))
i can load in repl when right click on project , open generic leinengen command line, execute "lein ring uberwar" either nothing happens or variation of following dumped in console window:
compiling aws-test.handler exception in thread "main" java.lang.noclassdeffounderror: ring/middleware/file_info$loading__4958__auto__, compiling:(route.clj:1:1) @ clojure.lang.compiler$invokeexpr.eval(compiler.java:3558) @ clojure.lang.compiler.compile1(compiler.java:7226) @ clojure.lang.compiler.compile1(compiler.java:7216) @ clojure.lang.compiler.compile(compiler.java:7292) @ clojure.lang.rt.compile(rt.java:398) @ clojure.lang.rt.load(rt.java:438) @ clojure.lang.rt.load(rt.java:411) @ clojure.core$load$fn__5066.invoke(core.clj:5641) @ clojure.core$load.doinvoke(core.clj:5640) @ clojure.lang.restfn.invoke(restfn.java:408) @ clojure.core$load_one.invoke(core.clj:5446) @ clojure.core$load_lib$fn__5015.invoke(core.clj:5486) @ clojure.core$load_lib.doinvoke(core.clj:5485) @ clojure.lang.restfn.applyto(restfn.java:142) @ clojure.core$apply.invoke(core.clj:626) @ clojure.core$load_libs.doinvoke(core.clj:5524) @ clojure.lang.restfn.applyto(restfn.java:137) @ clojure.core$apply.invoke(core.clj:626) @ clojure.core$require.doinvoke(core.clj:5607) @ clojure.lang.restfn.invoke(restfn.java:436) @ aws_test.handler$loading__4958__auto__.invoke(handler.clj:1) @ clojure.lang.afn.applytohelper(afn.java:152) @ clojure.lang.afn.applyto(afn.java:144) @ clojure.lang.compiler$invokeexpr.eval(compiler.java:3553) @ clojure.lang.compiler.compile1(compiler.java:7226) @ clojure.lang.compiler.compile1(compiler.java:7216) @ clojure.lang.compiler.compile(compiler.java:7292) @ clojure.lang.rt.compile(rt.java:398) @ clojure.lang.rt.load(rt.java:438) @ clojure.lang.rt.load(rt.java:411) @ clojure.core$load$fn__5066.invoke(core.clj:5641) @ clojure.core$load.doinvoke(core.clj:5640) @ clojure.lang.restfn.invoke(restfn.java:408) @ clojure.core$load_one.invoke(core.clj:5446) @ clojure.core$compile$fn__5071.invoke(core.clj:5652) @ clojure.core$compile.invoke(core.clj:5651) @ user$eval15.invoke(form-init3989860914484838550.clj:1) @ clojure.lang.compiler.eval(compiler.java:6703) @ clojure.lang.compiler.eval(compiler.java:6693) @ clojure.lang.compiler.eval(compiler.java:6693) @ clojure.lang.compiler.load(compiler.java:7130) @ clojure.lang.compiler.loadfile(compiler.java:7086) @ clojure.main$load_script.invoke(main.clj:274) @ clojure.main$init_opt.invoke(main.clj:279) @ clojure.main$initialize.invoke(main.clj:307) @ clojure.main$null_opt.invoke(main.clj:342) @ clojure.main$main.doinvoke(main.clj:420) @ clojure.lang.restfn.invoke(restfn.java:421) @ clojure.lang.var.invoke(var.java:383) @ clojure.lang.afn.applytohelper(afn.java:156) @ clojure.lang.var.applyto(var.java:700) @ clojure.main.main(main.java:37) caused by: java.lang.noclassdeffounderror: ring/middleware/file_info$loading__4958__auto__ @ ring.middleware.file_info__init.load(unknown source) @ ring.middleware.file_info__init.<clinit>(unknown source) @ java.lang.class.forname0(native method) @ java.lang.class.forname(unknown source) @ clojure.lang.rt.loadclassforname(rt.java:2093) @ clojure.lang.rt.load(rt.java:430) @ clojure.lang.rt.load(rt.java:411) @ clojure.core$load$fn__5066.invoke(core.clj:5641) @ clojure.core$load.doinvoke(core.clj:5640) @ clojure.lang.restfn.invoke(restfn.java:408) @ clojure.core$load_one.invoke(core.clj:5446) @ clojure.core$load_lib$fn__5015.invoke(core.clj:5486) @ clojure.core$load_lib.doinvoke(core.clj:5485) @ clojure.lang.restfn.applyto(restfn.java:142) @ clojure.core$apply.invoke(core.clj:626) @ clojure.core$load_libs.doinvoke(core.clj:5524) @ clojure.lang.restfn.applyto(restfn.java:137) @ clojure.core$apply.invoke(core.clj:628) @ clojure.core$use.doinvoke(core.clj:5618) @ clojure.lang.restfn.invoke(restfn.java:512) @ compojure.route$loading__4958__auto__.invoke(route.clj:1) @ clojure.lang.afn.applytohelper(afn.java:152) @ clojure.lang.afn.applyto(afn.java:144) @ clojure.lang.compiler$invokeexpr.eval(compiler.java:3553) ... 51 more caused by: java.lang.classnotfoundexception: ring.middleware.file_info$loading__4958__auto__ @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 75 more
i got same error @ 1 point except referring compojure.core library.
any suggestions on how running appreciated.
Comments
Post a Comment