This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-30
Channels
- # arachne (2)
- # beginners (8)
- # boot (19)
- # chestnut (2)
- # cider (1)
- # clara (1)
- # cljs-dev (31)
- # cljsrn (82)
- # clojure (163)
- # clojure-dusseldorf (7)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-norway (3)
- # clojure-russia (24)
- # clojure-sg (5)
- # clojure-spec (6)
- # clojure-uk (42)
- # clojurescript (239)
- # core-async (4)
- # cursive (10)
- # data-science (18)
- # datascript (1)
- # datomic (110)
- # emacs (16)
- # euroclojure (1)
- # events (1)
- # figwheel (1)
- # hoplon (22)
- # keechma (2)
- # klipse (5)
- # lein-figwheel (3)
- # leiningen (7)
- # luminus (27)
- # melbourne (2)
- # mount (5)
- # nyc (7)
- # off-topic (35)
- # om (20)
- # onyx (49)
- # pedestal (41)
- # re-frame (31)
- # reagent (18)
- # remote-jobs (9)
- # ring (4)
- # ring-swagger (1)
- # spacemacs (6)
- # specter (6)
- # uncomplicate (3)
- # unrepl (9)
- # untangled (54)
- # yada (11)
Hello!
Need more help.
What does this mean:
Warning: The Main-Class specified does not exist within the jar. It may not be executable as expected. A gen-class directive may be missing in the namespace which contains the main method, or the namespace has not been AOT-compiled.
?
App runs from lein run
but not uberjar or uberwar. Was running ok two days ago. So i did some breaking change. But this message is totally uninformative
java -jar target/uberjar/aaa-0.1.0-SNAPSHOT.jar
Error: Could not find or load main class aaa.core
check your project.clj
file. there should be a main function configured with the key :main
do you have any other aaa.core.clj
? this is on your dev prorfile so it’s only loaded on dev. if the code is something you want to have available on all envriments it should not be on /env. it shoudl be on src/clj/aaa/core.clj
that’s a different one. So my guess is that the aaa.core.clj
file is in the wrong directory.
Looks like my ojdbc.jar not loaded, even if it is added to the jar and war, and that app can't init db/core.clj due to lost library. prpbably i need to fix Class path
My error was to assume that if i run lein new luminus +mysql +htt-kit +swagger +<etc>
it will generate everything correct. But unfortunately it lost core.clj and some dependencies. But now looks like it is up and runnign again.
as an example lein new luminus aaa +http-kit +swagger +h2 +war
will produce something that will fail to start as java -jar <path/to/aaa.jar>
is there a guide anywhere about how to get immutant/luminus working with https (self-signed for now)? the immutant docs say it’s “beyond the scope of the documentation” which is a little worrying.
@jtth I know its not exactly what you have been asking for, but, what I did some time ago is to use nginx as proxy for a clojure app and then use letsencrypt for nginx. After some fiddling I got it working.
The advantage is that you dont have to mess around with the java key store and you get a real certificate
Yeah, I found https://stackoverflow.com/questions/18432832/how-do-you-enable-https-and-http-https-redirects-in-ring-compojure which seems to say there is another way that seems… okay. Oh well, at least I see options now.
Is something like this the way? https://nginx-clojure.github.io/quickstart.html
@jtth Like I said, there are different ways. This is my nginx config for one of the sites I have: https://pastebin.com/W8BbqR0f
nginx then forwards the domain http://foo.de to https://foo.de and this to the app running on port 3123
thanks! I just found http://www.luminusweb.net/docs/deployment.md#setting_up_ssl too, so now I see my choices.