This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-16
Channels
- # announcements (3)
- # babashka (25)
- # beginners (71)
- # calva (18)
- # clj-kondo (52)
- # cljs-dev (94)
- # cljsrn (12)
- # clojure (33)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-uk (27)
- # clojurescript (18)
- # clojureverse-ops (4)
- # datomic (64)
- # deps-new (27)
- # depstar (5)
- # events (5)
- # fulcro (5)
- # graalvm (12)
- # graalvm-mobile (82)
- # helix (2)
- # introduce-yourself (1)
- # juxt (5)
- # lsp (10)
- # malli (7)
- # missionary (1)
- # off-topic (41)
- # pathom (69)
- # pedestal (6)
- # re-frame (4)
- # reagent (8)
- # releases (9)
- # remote-jobs (8)
- # shadow-cljs (3)
- # sql (46)
- # tools-deps (44)
- # uncomplicate (1)
- # vim (83)
Hi, all — I’m trying to get an uberjar created of a Fulcro RAD server application, with AOT to speed up startup time. I can start the server from clj
with the given set of aliases no problem.
clj -A:dev:datomic
Clojure 1.10.3
user=>
But when I attempt to make an uberjar with those same aliases, I get a “file not found” error, even though it should be on the classpath (from the “datomic” alias). Does anyone have any ideas on what I might be doing wrong? Thank you!
clj -X:datomic:dev:uberjar :aot true :jar ./target/feedly-reader-standalone.jar \
:main-class com.example.components.server
[main] INFO hf.depstar.aot - Compiling com.example.components.server ...
Execution error (FileNotFoundException) at com.example.components.ring-middleware/loading (ring_middleware.clj:1).
Could not locate com/example/components/parser__init.class, com/example/components/parser.clj or com/example/components/parser.cljc on classpath.
Full report at:
/var/folders/wm/3c6kft990tqblqjmdlrhdf640000gn/T/clojure-11232942154003298116.edn
[main] ERROR hf.depstar.aot - Compilation failed!
Execution error (ExceptionInfo) at hf.depstar.uberjar/build-jar-as-exec (uberjar.clj:553).
AOT compilation failed
(I know I shouldn’t have “dev” alias in uberjar… I included it just to see if it would resolve the problem.)
(I also posted this in #depstar channel, but thought I’d cross-post here, in case any of you have had this problem. I’ll cross-post any answer, too. Thx!)