{"action":"created","issue":{"url":"https://api.github.com/repos/weavejester/lein-ring/issues/150","labels_url":"https://api.github.com/repos/weavejester/lein-ring/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/weavejester/lein-ring/issues/150/comments","events_url":"https://api.github.com/repos/weavejester/lein-ring/issues/150/events","html_url":"https://github.com/weavejester/lein-ring/issues/150","id":56080117,"number":150,"title":"lein ring war fails","user":{"login":"timur87","id":4758965,"avatar_url":"https://avatars.githubusercontent.com/u/4758965?v=3","gravatar_id":"","url":"https://api.github.com/users/timur87","html_url":"https://github.com/timur87","followers_url":"https://api.github.com/users/timur87/followers","following_url":"https://api.github.com/users/timur87/following{/other_user}","gists_url":"https://api.github.com/users/timur87/gists{/gist_id}","starred_url":"https://api.github.com/users/timur87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timur87/subscriptions","organizations_url":"https://api.github.com/users/timur87/orgs","repos_url":"https://api.github.com/users/timur87/repos","events_url":"https://api.github.com/users/timur87/events{/privacy}","received_events_url":"https://api.github.com/users/timur87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-30T20:21:50Z","updated_at":"2015-01-30T23:08:40Z","closed_at":null,"body":"Hi, \r\n\r\nlein ring war fails. I can run the server with lein ring server and lein ring uberjar works as well. I receive the following error. Any ideas about the problem?  \r\nVersions: Leiningen 2.5.1 on Java 1.8.0_25 Java HotSpot(TM) 64-Bit Server VM lein-ring \"0.9.1\"\r\n\r\n lein ring war\r\nCompiling ClojureScript.\r\njava.lang.NullPointerException: null\r\n at clojure.core$namespace.invoke (core.clj:1526)\r\n    leiningen.ring.war$default_servlet_class.invoke (war.clj:50)\r\n    leiningen.ring.war$servlet_class.invoke (war.clj:60)\r\n    leiningen.ring.war$servlet_ns.invoke (war.clj:63)\r\n    leiningen.ring.war$compile_servlet.invoke (war.clj:146)\r\n    leiningen.ring.war$war.invoke (war.clj:249)\r\n    leiningen.ring.war$war.invoke (war.clj:240)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:154)\r\n    clojure.lang.AFn.applyTo (AFn.java:144)\r\n    clojure.core$apply.invoke (core.clj:626)\r\n    leiningen.ring$ring.doInvoke (ring.clj:27)\r\n    clojure.lang.RestFn.invoke (RestFn.java:425)\r\n    clojure.lang.Var.invoke (Var.java:383)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n    clojure.lang.Var.applyTo (Var.java:700)\r\n    clojure.core$apply.invoke (core.clj:626)\r\n    leiningen.core.main$partial_task$fn__6094.doInvoke (main.clj:263)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:139)\r\n    clojure.lang.AFunction$1.doInvoke (AFunction.java:29)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.core$apply.invoke (core.clj:626)\r\n    leiningen.core.main$apply_task.invoke (main.clj:313)\r\n    leiningen.core.main$resolve_and_apply.invoke (main.clj:319)\r\n    leiningen.core.main$_main$fn__6160.invoke (main.clj:392)\r\n    leiningen.core.main$_main.doInvoke (main.clj:385)\r\n    clojure.lang.RestFn.invoke (RestFn.java:421)\r\n    clojure.lang.Var.invoke (Var.java:383)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n    clojure.lang.Var.applyTo (Var.java:700)\r\n    clojure.core$apply.invoke (core.clj:624)\r\n    clojure.main$main_opt.invoke (main.clj:315)\r\n    clojure.main$main.doInvoke (main.clj:420)\r\n    clojure.lang.RestFn.invoke (RestFn.java:457)\r\n    clojure.lang.Var.invoke (Var.java:394)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:165)\r\n    clojure.lang.Var.applyTo (Var.java:700)\r\n    clojure.main.main (main.java:37)"},"comment":{"url":"https://api.github.com/repos/weavejester/lein-ring/issues/comments/72286787","html_url":"https://github.com/weavejester/lein-ring/issues/150#issuecomment-72286787","issue_url":"https://api.github.com/repos/weavejester/lein-ring/issues/150","id":72286787,"user":{"login":"MichaelBlume","id":208853,"avatar_url":"https://avatars.githubusercontent.com/u/208853?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBlume","html_url":"https://github.com/MichaelBlume","followers_url":"https://api.github.com/users/MichaelBlume/followers","following_url":"https://api.github.com/users/MichaelBlume/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBlume/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBlume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBlume/subscriptions","organizations_url":"https://api.github.com/users/MichaelBlume/orgs","repos_url":"https://api.github.com/users/MichaelBlume/repos","events_url":"https://api.github.com/users/MichaelBlume/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBlume/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T23:08:40Z","updated_at":"2015-01-30T23:08:40Z","body":"Ok, looks like the trouble is your ring config is inside the dev profile.\r\nThe dev profile isn't active when you're creating artifacts for deployment,\r\nlike wars, so it doesn't see a handler and errors out.\r\n\r\nWe could do a better job of reporting this, though.\r\n\r\nOn Fri Jan 30 2015 at 2:45:17 PM timur87 <notifications@github.com> wrote:\r\n\r\n> Here it is\r\n>\r\n> (defproject myproject \"0.1.0-SNAPSHOT\"\r\n>   :description \"FIXME: write description\"\r\n>   :url \"http://example.com/FIXME\"\r\n>   :license {:name \"Eclipse Public License - v 1.0\"\r\n>             :url \"http://www.eclipse.org/legal/epl-v10.html\"\r\n>             :comments \"same as Clojure\"}\r\n>   :dependencies [[org.clojure/clojure \"1.6.0\"]\r\n>                  [compojure \"1.1.8\"]\r\n>                  [liberator \"0.12.2\"]\r\n>                  [enlive \"1.1.5\"]\r\n>                  [com.novemberain/monger \"2.0.0\"]\r\n>                  [com.cemerick/friend \"0.2.1\"]\r\n>                  [friend-oauth2 \"0.1.1\"]\r\n>                  [enfocus \"2.1.0\"]\r\n>                  [hiccup \"1.0.5\"]\r\n>                  [cljs-ajax \"0.3.3\"]\r\n>                  [ring/ring-core \"1.3.2\"]\r\n>                  [com.taoensso/timbre \"3.3.1\"]\r\n>                  [org.clojure/clojurescript \"0.0-2371\"]\r\n>                  [tailrecursion/ring-proxy \"2.0.0-SNAPSHOT\"]\r\n>                  [clojure-saxon \"0.9.4\"]\r\n>                  [com.cemerick/url \"0.1.1\"]\r\n>                  [into-edn \"1.0.2\"]\r\n>                  [org.clojure/data.xml \"0.0.8\"]\r\n>                  [org.clojure/data.zip \"0.1.1\"]]\r\n>   :java-source-paths [\"src/main/java\"]\r\n>   :resource-paths [\"src/main/resources\" \"src/main/web-app\"]\r\n>   :source-paths [\"src/main/clj\"]\r\n>   :target-path \"target/%s/\"\r\n>   ;; Directory in which to place AOT-compiled files. Including %s will\r\n>   ;; splice the :target-path into this value.\r\n>   :compile-path \"%s/classy-files\"\r\n>   ; ;:compile-path \"bin/\"\r\n>   :profiles  {:dev\r\n>               {:dependencies [[javax.servlet/servlet-api \"2.5\"]\r\n>                               [ring-mock \"0.1.5\"]]\r\n>                :plugins [[lein-ring \"0.9.1\"]\r\n>                          [lein-idefiles \"0.2.1\"]\r\n>                          [lein-cljsbuild \"1.0.3\"]\r\n>                          [com.cemerick/austin \"0.1.4\"]\r\n>                          [lein-less \"1.7.2\"]\r\n>                          [lein-bower \"0.5.1\"]\r\n>                          [cider/cider-nrepl \"0.8.2\"]]\r\n>                :ring {:handler main/myapp}\r\n>                :less {:source-paths [\"src/main/web-app/public/stylesheets\"]\r\n>                       :target-path \"src/main/web-app/public/stylesheets\"}\r\n>                :hooks [leiningen.cljsbuild]\r\n>                :bower-dependencies [[angular \"1.2.x\"]\r\n>                                     [angular-route \"1.2.x\"]\r\n>                                     [angular-loader \"1.2.x\"]\r\n>                                     [angular-mocks \"~1.2.x\"]\r\n>                                     [html5-boilerplate \"~4.3.0\"]\r\n>                                     [bootstrap \"~3.1.1\"]\r\n>                                     [angular-resource \"~1.2.16\"]\r\n>                                     [angular-ui-router \"~0.2.10\"]]\r\n>                :bower {:directory \"src/main/web-app/public/js/vendors\"}}}\r\n>   :cljsbuild {\r\n>               :builds [{\r\n>                                         ; The path to the top-level ClojureScript source directory:\r\n>                                         :source-paths [\"src/main/cljs\"]\r\n>                                         ; The standard ClojureScript compiler options:\r\n>                                         ; (See the ClojureScript compiler documentation for details.)\r\n>                                         :compiler {\r\n>                                                    :output-to \"src/main/web-app/public/js/main.js\"  ; default: target/cljsbuild-main.js\r\n>                                                    :optimizations :whitespace\r\n>                                                    :pretty-print true}}]})\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/weavejester/lein-ring/issues/150#issuecomment-72283770>\r\n> .\r\n>"}}