(in the clojure.java.jdbc namespace, I should have said) On Sat Jan 03 2015 at 12:43:31 PM Michael Blume <blume.m...@gmail.com> wrote:
> it's hard to say exactly what's going on without tinkering with your > project, but Connectable is found in the clojure.java.jdbc, so I'd make > absolutely sure that namespace has been required before Connectable is > referred to. And then, well, if it were me, I'd just ditch AOT. In my > experience it causes more problems than it solves. > > On Sat Jan 03 2015 at 11:39:35 AM Shoeb Bhinderwala <shua...@gmail.com> > wrote: > >> When I create a uberjar with aot compilation I am surprised to see ".clj" >> files in there. Then when I run the jar with the "java -jar myuberjar" >> command I get a ClassNotFoundException. >> >> For example, I am have the following dependency in my project.clj file: >> >> [org.clojure/java.jdbc "0.3.6"] >> >> However, when running the uberjar I see the following exception >> >> java.lang.ClassNotFoundException: clojure.java.jdbc.Connectable >> >> Inside the uberjar when I traverse to the location \clojure\java\jdbc I >> see only one file "jdbc.clj" and no ".class" files? I don't see the >> Connectable.class file there. I am expecting to see the .class files here >> as I am specifying :aot :all in my project.clj file: >> >> :profiles >> {:dev {:resource-paths ["config_dev"]} >> :stage {:resource-paths ["config_stage"]} >> :prod {:resource-paths ["config_prod"]} >> * :uberjar {:aot :all}})* >> >> Have spent many hours hair pulling but not able to figure out how to >> solve this problem. >> >> Many thanks for your help. >> Regards, >> Shoeb >> >> Leiningen version 2.5.0 >> Java version 1.7 >> Issue is on both Windows 7 and Linux. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.