-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System does not start from uberjar with clojure-1.7.0 #32
Comments
Is there an exception being thrown? |
nope, no exceptions. that's a bit mysterious because it looks like component/start simply does nothing. As mentioned, it's a bit tricky because this issue appears only when executing aot-ed uberjar. |
I've created a simple project replicating this issue: https://github.com/mbuczko/temp-component it uses boot to create uberjar. if you use Mac, boot is available through Homebrew (brew install boot). |
I cannot reproduce this issue using Leiningen. I was unable to build the project using boot. I expect this is an AOT-compilation or uberjar issue and nothing to do with Component. Maybe your uberjar contains stale .class files compiled against the wrong version of Clojure. |
Unfortunately, it's not the case. I was cleaning build dir (target/) each time before making new uberjar. Edit: dependency added. please try again. |
I think it is very likely that this is an issue with your build configuration or environment, instead of a problem specifically with 'component'. Since I cannot reproduce the behavior you are seeing, I suggest you ask about this problem on the Clojure mailing list, where a wider audience may have better suggestions on how to identify the cause. If it does turn out to be a problem with 'component' I will do my best to fix it. |
ok, thanks Stuart. I'll try to dig a bit deeper to see where the real problem is. I'm closing this issue now, and possibly will come back with more detailed investigation :) |
@mbuczko Did you figure this out? I'm having the exact same problem. |
I have been able to reproduce this issue using Boot. I have never reproduced it using Leiningen. I am fairly certain this is somehow related to the way Boot does AOT-compilation or builds uberJARs. Similar issues have been reported for Boot: see boot-clj/boot#193 and boot-clj/boot#227. Some users report that the problem is resolved on the latest |
Possibly related to boot-clj/boot#211 or boot-clj/boot#217, both with fixes on Git |
Thanks @stuartsierra. Awaiting new release of boot. |
Just tried boot 2.1.2-23-g516f186 with clojure 1.7.0 and component 0.2.3 and it works fine! |
I have a problem starting my components (a whole system actually) aot-ed and packed to uberjar with clojure 1.7.0 (beta3 and latest RC1). Switching clojure back to 1.6.0 and repackaging uberjar again solves the problem, so I guess there might be something wrong with component library itself :)
The text was updated successfully, but these errors were encountered: