How does your app serve up the home page? Have you tried extracting the working uberjar and the broken uberjar and comparing the resulting directory trees? On Oct 18, 2013 5:11 PM, "xavi" <xavi.caba...@gmail.com> wrote:
> Hello, > > I have a strange problem when running an uberjar produced by Leiningen > 2.3.3, which doesn't happen with Leiningen 2.3.2 . > The uberjar corresponds to a web app I'm working on. With 2.3.3 ... > > $ lein clean > $ lein uberjar > $ java $JVM_OPTS -cp target/myapp-standalone.jar clojure.main -m > myapp.server > $ curl -i http://localhost:8080 > HTTP/1.1 200 OK > Date: Fri, 18 Oct 2013 21:52:21 GMT > Last-Modified: Fri, 18 Oct 2013 21:50:47 GMT > Content-Length: 0 > Content-Type: application/octet-stream > Server: Jetty(7.x.y-SNAPSHOT) > > So, requesting the home page, I get an empty response. But if I generate > the uberjar with lein 2.3.2 ... > > $ lein clean > $ lein uberjar > $ java $JVM_OPTS -cp target/myapp-standalone.jar clojure.main -m > myapp.server > $ curl -i http://localhost:8080 > HTTP/1.1 200 OK > Date: Fri, 18 Oct 2013 21:58:54 GMT > Content-Type: text/html;charset=UTF-8 > Transfer-Encoding: chunked > Server: Jetty(7.x.y-SNAPSHOT) > > <!DOCTYPE html> > <html> > ... > > then it works! > > Any idea on what can be the problem with Leiningen 2.3.3? > (After hours of trying different things I'm quite desperate now :( > > Cheers, > Xavi > > -- > -- > 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/groups/opt_out. > -- -- 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/groups/opt_out.