Fork me on GitHub
#pedestal
<
2018-11-14
>
emccue01:11:13

A decent amount of downloads on an older version

emccue01:11:34

but not so many on recent ones

souenzzo15:11:56

Can I use io.pedestal.test without explicitly use jetty or immutant?

Twan15:11:11

We were able to do that

souenzzo15:11:58

@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)

Twan15:11:11

Ah, I see that I must be sorry. The (default) service-map that I use returns a :jetty server according to the docs

Twan15:11:31

It is not explicitly set by ourselves, but internally it does

souenzzo15:11:54

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

souenzzo16:11:35

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

ddeaguiar10:11:28

@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.