Re: Uberjar woes

2015-12-10 Thread Fenton Travers
I hit this problem again and it had another solution. I have included the ns: 'user' in my project.clj ala: :source-paths ["src" "dev"] |-- dev | `-- user.clj |-- project.clj `-- src `-- mount_issue `-- core.clj I required the library in the user.clj and that caused the havoc.

Re: Uberjar woes

2015-09-07 Thread Fenton Travers
I've had this problem too. I solved in a slightly different way. I had my main function in a clojure file that also defined a component. I moved my main function into a different file and that did the trick. I didn't need a :gen-class directive in each file that had a component. I didn't ne

Re: Uberjar woes

2014-04-14 Thread Tom Connors
Thanks for that tip, James - I'll look through the jars of my dependencies for spurious classes and post back here if I find anything that might be of value to future reader of this thread. On Thursday, February 27, 2014 2:49:38 PM UTC-5, Tom Connors wrote: > > Hi Everyone, > I've been having tr

Re: Uberjar woes

2014-04-11 Thread Josh Lehman
I've come up with a fix after lots of fiddling, and I cannot quite explain it -- but it works! The component library involves creating records that implement the Lifecycle protocol. In every namespace where I implemented that protocol, I added a (:gen-class) to the namespace declaration. I also

Re: Uberjar woes

2014-04-11 Thread James Reeves
Clout doesn't depend on any protocols in Clojure. The only protocol it uses is defined within the clout.core namespace itself. Problems like this are often caused by compiled class files on your classpath. Often they are in the target directory, which can be solved by a "lein clean". The :clean-no

Re: Uberjar woes

2014-04-11 Thread Tom Connors
Hi Josh, My solution ended up being pretty lame: I stopped calling a function from clout, and the uberjar magically worked, as disappointing as that explanation is. As far as I could tell, the root cause of my problem was that clout depends on an old version of clojure (1.2, if I recall correct

Re: Uberjar woes

2014-04-11 Thread Josh Lehman
Tom, Not sure if you every figured this out, but I'm having the same issue. In my case, the error points to the Lifecycle protocol in https://github.com/stuartsierra/component (com/stuartsierra/component/Lifecycle). It's a pretty barebones configuration. https://gist.github.com/jalehman/104

Re: Uberjar woes

2014-02-27 Thread Tom Connors
Hi Sam, thanks a lot for responding. Here's my project.clj: https://gist.github.com/tomconnors/9261413 On Thursday, February 27, 2014 2:49:38 PM UTC-5, Tom Connors wrote: > > Hi Everyone, > I've been having trouble creating an uberjar of a project and I'm hoping > someone here can point me towar

Re: Uberjar woes

2014-02-27 Thread Sam Ritchie
Hey Tom, Can you post your project.clj for us to take a peek? Tom Connors February 27, 2014 12:49 PM Hi Everyone, I've been having trouble creating an uberjar of a project and I'm hoping someone here can point me toward a solution. After cleaning out the target d

Uberjar woes

2014-02-27 Thread Tom Connors
Hi Everyone, I've been having trouble creating an uberjar of a project and I'm hoping someone here can point me toward a solution. After cleaning out the target directory (with "lein clean") and preprocessing my cljx, I can run the project with no trouble using lein repl and lein run. I can pack