Try the following instead (just modified your attached source)

(ns guestbook.core
 (:use compojure.core)
 (:require [compojure.route :as route])
 (:require [ring.adapter.jetty :as jetty])

(defroutes dispatcher
  (GET "/" [] "<h1>Hello, world</h1>")
  (route/not-found "<b>Requested resource not found</b>"))

(defn -main [& args]
  (jetty/run-jetty dispatcher {:port 8080}))

You don't need the gen class or the servlet stuff. Also note that there is a compojure google group that you can join to ask more specific compojure based questions on. If you want to see more examples I have some on github at http://github.com/abedra/clojure-web.

Cheers,

Aaron


On 9/12/10 8:53 PM, Bahman Movaqar wrote:
  Hi list,

I'm trying to get a simple "hello world" Compojure application
running.   I attach both the clj file and maven pom.xml (using
NetBeans+Enclojure).  When I run (guestbook.core/-main), I get a blank
page in browser, no matter the URL.  What am I missing?

BTW, by "blank" I really mean blank.  If I view the page source in
Firefox, it's empty.

TIA,


--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to