FAQ

Search Discussions

99 discussions - 444 posts

  • I need to pack this Compojure/Ring little application to .war file to deploy with Tomcat/Elastic Beanstalk. It works fine with lein/jetty locally, but under tomcat it gives me this: HTTP Status 500 - ...
    ThaoThao
    Apr 14, 2014 at 8:51 am
    Apr 14, 2014 at 6:17 pm
  • Does anybody have a trivial sample project show how to integrate Clojure/Compojure app with Foundation CSS? If so could you provide a link to the sample code. Thanks, Adam -- You received this ...
    Adam Perry-PelletierAdam Perry-Pelletier
    Apr 8, 2014 at 8:50 am
    Apr 8, 2014 at 8:50 am
  • I just started with Compojure / Clojure. Getting: java.lang.IllegalArgumentException: Key must be integer (No line numer from in my code). Figured out, it's related with the return value of my ...
    Ivan SchuetzIvan Schuetz
    Apr 7, 2014 at 9:11 pm
    Apr 7, 2014 at 9:18 pm
  • I am nearing the end of Yogthos' "Web Development with Clojure" book, but am having trouble at the part when you deploy to Heroku. The app worked fine during development and runs fine with 'foreman ...
    KurofuneKurofune
    Apr 3, 2014 at 12:27 pm
    Apr 8, 2014 at 2:50 am
  • Hi, I am using Compojure (version 1.1.6) for a webapp having an html form in which some text input fields are non-mandatory. But when it is submitted with one or more of these fields left blank, it ...
    Vineet NaikVineet Naik
    Mar 7, 2014 at 6:54 pm
    Mar 7, 2014 at 7:18 pm
  • lein new compojure hello-world (defn post_body [body] (println body)) (defroutes app-routes (POST "/wx_dmsj/" [body] (post_body body))) In the compojure document: In a request, the value for :body is ...
    ActioncaoActioncao
    Mar 2, 2014 at 11:38 am
    Mar 2, 2014 at 4:06 pm
  • I just implemented similar error-handling recently and am having trouble getting it to work. Made a reference app to demonstrate the issue: https://github.com/yayitswei/exceptiontest What am I doing ...
    Wei HsuWei Hsu
    Feb 27, 2014 at 1:44 pm
    Feb 27, 2014 at 1:44 pm
  • Hello, I'm trying to implement an exception handler and am having trouble getting it to work. Can spot what I'm doing wrong? https://github.com/yayitswei/exceptiontest Thanks, Wei -- You received ...
    Wei HsuWei Hsu
    Feb 27, 2014 at 1:44 pm
    Mar 1, 2014 at 1:02 pm
  • I asked this question here on stack overflow, but am not getting very many satisfactory responses ...
    Jesse DiazJesse Diaz
    Feb 25, 2014 at 5:16 pm
    Feb 26, 2014 at 3:43 pm
  • Hi all, My test suite passes with 1.1.5 but when I upgrade to 1.1.6 it fails stating that it can't find HttpServletRequest on the classpath. Has the servlet-api been removed from Compojure or one of ...
    Colin YatesColin Yates
    Feb 13, 2014 at 11:53 am
    Feb 13, 2014 at 12:44 pm
  • I am having a problem with the ring uberwar task where the automatically generated servlet cannot be compiled using the basic dependencies. The servlet api dependency is needed during the build to ...
    Robert ReesRobert Rees
    Dec 30, 2013 at 5:06 pm
    Jan 5, 2014 at 11:22 pm
  • Complete code here https://github.com/http-kit/chat-websocket/blob/master/src/main.clj - - - If defroutes specifies a response function with no args, how can the definition of that function be arity ...
    Ryan WatersRyan Waters
    Dec 18, 2013 at 3:47 pm
    Dec 18, 2013 at 4:36 pm
  • Hello! I thought I had read some place that compojure.handler's default behavior for a param string of the type ?foo=1&bar=2&foo=3 was to produce a map of the form {:foo [1 3] :bar 2}; however, I'm ...
    Chris DaleChris Dale
    Dec 18, 2013 at 12:05 am
    Dec 29, 2013 at 8:14 pm
  • Hello, can someone point how to set expires headers to never expire in compojure app? I would also like to find out if there is a way to generate assets hash that automatically gets added to every ...
    Dmitry AmelchenkoDmitry Amelchenko
    Dec 16, 2013 at 5:09 pm
    Dec 16, 2013 at 5:24 pm
  • I am trying to learn clojure web development with Ring and Compojure and I am a little unclear about the usage of compojure.route/resources and ring.middleware.resource/wrap-resource. I have looked ...
    Kris GarciaKris Garcia
    Nov 30, 2013 at 5:50 pm
    Dec 1, 2013 at 7:55 pm
  • sorry I can't write English.. (defroutes main-routes (GET "/" [] (io/resource "public/index.html")) (POST "/login" req (login req ) ) ;; <-- session check possible (route/resources "/") ;; <-- ...
    박재혁박재혁
    Nov 22, 2013 at 3:03 am
    Nov 22, 2013 at 10:43 am
  • Hi all, I have a long running POST request which updates the session with the requested result. Now, when concurrent POST requests are made from the same session, the updates done in concurrent ...
    Binita BharatiBinita Bharati
    Nov 20, 2013 at 12:44 pm
    Nov 22, 2013 at 9:41 am
  • Hi, I just started to use compojure and to see how compojure.handler/site works, I pulled up the code<https://github.com/weavejester/compojure/blob/1.1.3/src/compojure/handler.clj#L28 in the master ...
    DuckyDucky
    Nov 13, 2013 at 6:06 pm
    Nov 14, 2013 at 11:25 am
  • Hi, I'm new to both compojure and clojure. What is the preferred way to implement per environment configuration, for example to handle 2 different db connections for development and production? In ...
    Nicholas WielandNicholas Wieland
    Nov 11, 2013 at 4:50 pm
    Nov 11, 2013 at 10:24 pm
  • Hello! Routegen makes exposing webservices simpler :) https://github.com/timothypratley/routegen Pass a namespace to create a page or service for each function in that namespace: page-routes "Returns ...
    Timothy PratleyTimothy Pratley
    Nov 10, 2013 at 7:42 am
    Nov 10, 2013 at 7:42 am
  • I'd like to create a connection to a database and pass that connection to my routes. But defroutes doesn't let me pass variables. What's the best way to do this? Do I need to create some sort of ...
    Tom VaughanTom Vaughan
    Nov 4, 2013 at 7:23 pm
    Nov 6, 2013 at 2:44 am
  • Hi all, (posted in the main Clojure group as well before I realised this group existed!) I have developed a ring/compojure app which receives and servers JSON. All is well in 'lein ring server' but ...
    Colin YatesColin Yates
    Nov 4, 2013 at 12:24 am
    Nov 4, 2013 at 12:24 am
  • We're using compojure to handle payments. What we'd like to do _now_ is extend the same concept to running commands from shell. These in turn would - Manage shell users - Build or tear-down virtual ...
    Brian DunbarBrian Dunbar
    Sep 10, 2013 at 5:27 pm
    Sep 13, 2013 at 2:07 am
  • Hi all, Does anyone have real-world recommendations for things like health monitoring, server-side analytics, error capture, etc., when running Compojure / Ring apps on Heroku? I know there's a lot ...
    Mike RobertsMike Roberts
    Sep 6, 2013 at 6:25 pm
    Sep 10, 2013 at 2:59 pm
  • Greeting Compojure group, I have been working with compojure and really like what I am building. However I am still quite new to writing and writing clojure code, so while I have graduated from ...
    Dru SellersDru Sellers
    Sep 6, 2013 at 3:15 pm
    Sep 10, 2013 at 2:40 pm
  • Hopefully it's ok to post this here, seems like it's relevant ;-) I was using ring-serve happily with an emacs nrepl. When I'd make a change C-c C-k would evaluate my new handler code and I could ...
    Craig ChingCraig Ching
    Jul 31, 2013 at 4:50 pm
    Jul 31, 2013 at 4:50 pm
  • I thought that at one point "lein new compojure" would pull in at least jetty 7, but recently I've noticed that I'm still getting jetty 6. So two questions: 1. Am I doing something wrong? 2. Is there ...
    Craig ChingCraig Ching
    Jul 29, 2013 at 3:21 pm
    Jul 30, 2013 at 2:38 am
  • From what I gather, the :context key is appended to the request map automatically whenever a route matches one created by the (context macro inside compojure's core.clj... I have tried to access this ...
    Brice BurgessBrice Burgess
    Jul 18, 2013 at 7:07 pm
    Jul 18, 2013 at 7:42 pm
  • (still newbie) I cannot get my head around how to serve both HTML and JSON from a single app. I have (defroutes api-routes) for my api which I want to serve using handler/api and wrapped in the json ...
    Colin YatesColin Yates
    Jul 4, 2013 at 2:43 pm
    Jul 19, 2013 at 7:52 pm
  • The compojure-example project defines its main hander like this: (def app (- (handler/site main-routes) (wrap-base-url))) I'd like my top level handler definition to be a function (defn app … How can ...
    Don JacksonDon Jackson
    Jul 2, 2013 at 5:55 pm
    Jul 2, 2013 at 6:32 pm
  • Hi, I haven't touched compojure for a while and it's parameter destructuring is giving me trouble again. :) I'm using wrap-json-body from ring-json to convert a json POST payload into clojure ...
    László TörökLászló Török
    Jun 5, 2013 at 9:57 am
    Jun 5, 2013 at 12:11 pm
  • Hi all, First - thanks James for this library and all the others you've put out in the world. I'm noob-ish to Compojure (and Clojure web programming in general) so I admit I may not have grokked it ...
    Mike RobertsMike Roberts
    Apr 30, 2013 at 6:27 pm
    May 1, 2013 at 5:20 pm
  • Hi, I'm diving into learning compojure to build a REST service. I followed the Getting Started page of compojure but when I try to run `lein ring server`, I get the following error messages: Could ...
    EllEll
    Apr 30, 2013 at 6:27 pm
    May 1, 2013 at 2:13 am
  • Hi, I'm diving into learning compojure to build a REST service. I followed the Getting Started page of compojure but when I try to run `lein ring server`, I get the following error messages: Could ...
    EllEll
    Apr 21, 2013 at 1:33 pm
    Apr 22, 2013 at 3:25 am
  • Hello all, I am trying to understand how to build the routes for the following urls but it seems that I can't quite get them right: The first one is: http://www.example.com?foo=1&bar=100 The above is ...
    Ryan T.Ryan T.
    Apr 16, 2013 at 11:29 am
    Apr 16, 2013 at 3:14 pm
  • What does everyone use to log requests in Compojure? Is there a standardised piece of middleware that provides all of the functionality? It seems like a common feature that Compojure is missing at ...
    Kushal PisavadiaKushal Pisavadia
    Apr 12, 2013 at 10:16 am
    Apr 12, 2013 at 1:16 pm
  • I'm new here and have appreciated the archived answers as I learn by working on a compojure application. I apologize if this is a newby question, but after several hours of experimentation, I can't ...
    Matt AndersonMatt Anderson
    Apr 10, 2013 at 6:24 am
    Apr 11, 2013 at 6:39 pm
  • Hi there ; Is there a way i can pass configurations to compojure on commandline ? e.g java -jar myapp.jar -config settings.yml Asked differently: I want to run my app as a jar file. How do i pass ...
    Josh KamauJosh Kamau
    Mar 24, 2013 at 9:56 pm
    Mar 25, 2013 at 12:12 am
  • Hi Are there any tutorials or code samples showing how to use Compojure for a large project (that includes tests)? All of the tutorials and code examples I have seen are for really small projects and ...
    Lee BrooksLee Brooks
    Mar 24, 2013 at 1:44 pm
    Mar 25, 2013 at 12:12 am
  • My GET works fine, but the POST does not. Here are my routes: -- You received this message because you are subscribed to the Google Groups "Compojure" group. To unsubscribe from this group and stop ...
    Larry google groupsLarry google groups
    Mar 17, 2013 at 7:44 pm
    Mar 17, 2013 at 8:06 pm
  • Hi. This is my first time using Compojure, and I'm trying to set up some nested routes. Here's what I'm after: /:locale/ - Home (with locale binding) /:locale/search - Search (with locale binding) So ...
    Matthew HillMatthew Hill
    Mar 17, 2013 at 6:15 pm
    Mar 17, 2013 at 6:21 pm
  • Hi. I'm new to Compojure. Pardon me for the novice question. I'd like to make a function or a macro to build several routes with common suffixes. But neither of my trials worked. Trial 1: defn Trial ...
    Zhemin LinZhemin Lin
    Mar 12, 2013 at 11:17 am
    Mar 13, 2013 at 12:33 am
  • Hi, I'm using (defroutes hs-routes ...) to specify routes and while defining these routes I reference some configuration parameters coming from configuration files and command line parameters. It ...
    Dima BDima B
    Feb 19, 2013 at 12:17 am
    Feb 20, 2013 at 3:45 am
  • Hello - been working on my first small project in Clojure and digging it. One thing I've not been able to determine is if it's possible to access the route parameters in middleware? Any help/pointers ...
    FelixFelix
    Feb 15, 2013 at 1:47 pm
    Jul 19, 2013 at 9:43 pm
  • Hi there, I had a working Webnoir set of handlers, using Noir's session facilities. I'm in the throws of migrating my code to Compojure, with lib-noir. Using lib-noir, I'm seeing errors when trying ...
    Timothy WashingtonTimothy Washington
    Feb 12, 2013 at 7:46 am
    Feb 13, 2013 at 3:48 am
  • I’m trying to create a POST handler which get a key in the URI, and a value in the message body. This is what I use from ClojureScript (with jayq) (let [url ...
    TzachTzach
    Feb 10, 2013 at 5:44 pm
    Feb 14, 2013 at 3:48 pm
  • Our company is looking for a full time or consultant developer. The job is to maintain and continue actively develop web application / internal webservices written in clojure. We use compojure web ...
    Vagif VerdiVagif Verdi
    Jan 31, 2013 at 11:02 pm
    Jan 31, 2013 at 11:02 pm
  • My routes are defined as follows (defroutes main-routes (wrap-json (GET "/services/location/actions/List/invocation" [] req/availability)) (route/resources "/app" {:root "public/app"}) (GET "/*" [] ...
    Sid KuriasSid Kurias
    Jan 18, 2013 at 6:23 pm
    Jan 20, 2013 at 6:46 am
  • Hi, tl;dr I am serving a hiccup template with relative links (i.e. "lib/extjs...js") from my "/" route. It works if I visit myserver/contextRoot/ but not myserver/contextRoot - how can I force ...
    Colin YatesColin Yates
    Jan 16, 2013 at 1:49 pm
    Apr 14, 2013 at 12:54 pm
  • Is there a way to 'pass' to the next matching route once/after a route has been matched? Something similar to "pass" in sinatra? http://www.sinatrarb.com/intro#Passing For better or worse I have one ...
    JulioJulio
    Jan 9, 2013 at 5:54 pm
    Jan 9, 2013 at 6:04 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupcompojure @
categoriesclojure
discussions99
posts444
users105
websiteclojure.org
irc#clojure

Top users

James Reeves: 81 posts James Reeves: 45 posts Tom Vaughan: 13 posts Nickbauman: 12 posts Jesse Diaz: 10 posts Sean Bowman: 10 posts Anand Prakash: 9 posts Colin Yates: 9 posts Stefan: 8 posts Tzach: 8 posts Michael: 7 posts Frye: 7 posts Larry google groups: 7 posts Chris Granger: 7 posts Matt Anderson: 6 posts Peter Taoussanis: 6 posts Gaz jones: 6 posts Philip Aston: 6 posts Nelson Morris: 6 posts Thao: 5 posts
show more