This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-14
Channels
- # aleph (10)
- # announcements (2)
- # beginners (228)
- # calva (18)
- # cider (6)
- # clara (5)
- # cljdoc (25)
- # cljs-dev (22)
- # clojure (78)
- # clojure-dev (30)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (32)
- # clojure-nl (21)
- # clojure-uk (126)
- # clojurescript (34)
- # cursive (5)
- # data-science (2)
- # datascript (2)
- # datomic (26)
- # defnpodcast (1)
- # emacs (5)
- # figwheel (5)
- # figwheel-main (3)
- # fulcro (14)
- # graphql (5)
- # jobs (1)
- # keechma (4)
- # nrepl (5)
- # off-topic (35)
- # onyx (3)
- # pedestal (12)
- # random (1)
- # re-frame (35)
- # reagent (8)
- # reitit (20)
- # remote-jobs (5)
- # ring-swagger (20)
- # shadow-cljs (166)
- # sql (43)
- # vim (6)
- # yada (15)
@twan When I try to
(def service-fn
(-> {::http/routes routes
#_#_::http/type :jetty
::http/port 8080
::http/join? false}
http/default-interceptors
http/dev-interceptors
http/create-server
::http/service-fn))
I get:
CompilerException java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, compiling:(ring/middleware/multipart_params.clj:53:20)
Ah, I see that I must be sorry. The (default) service-map that I use returns a :jetty
server according to the docs
In particular, I meant this piece https://github.com/walmartlabs/lacinia-pedestal/blob/master/src/com/walmartlabs/lacinia/pedestal.clj#L602
With [javax.servlet/javax.servlet-api "4.0.1"]
I get different error
CompilerException java.lang.IllegalArgumentException: There was no provider or server type specified.
(that is a pedetal error)
now I'm digging into ::http/chain-provider
I'm using pedestal to mock some http requests (as a client only) as a library, I think that avoid deps is a good thing 😄 https://github.com/souenzzo/pathom-pedestal-driver
@U2J4FRT2T, I think you figured this out but the dependency you need is the servlet-api. I’d use the same version that pedestal uses.