I'm writing a web app in clojure, and want to edit Jetty's settings. One way to do this is to use a web.xml file. How do I use a web.xml file with Jetty?
Asked
Active
Viewed 292 times
4
-
What do you want to customize? – Jeremy Apr 13 '12 at 20:12
-
gzip. I have a different question asking about that (http://stackoverflow.com/questions/10145891/how-do-i-programmatically-set-gzip-in-jetty), but if I can get web.xml going in noir, it solves it. – Paul Biggar Apr 13 '12 at 20:17
-
Would [ring-gzip-middleware](https://github.com/mikejs/ring-gzip-middleware) work? – Jeremy Apr 13 '12 at 20:24
-
No, ring-gzip-middleware is very broken. I'm not sure why actually, but I would prefer using jetty's built-in stuff than trying to fix an unmaintained package. – Paul Biggar Apr 13 '12 at 20:26
-
https://github.com/amalloy/ring-gzip-middleware This fork should work fine. – Rayne Apr 28 '12 at 04:18
-
@Rayne does it work with clojure 1.3? – Paul Biggar May 04 '12 at 06:40