[hunchentoot-devel] starting

Hi. I did this: (push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'acceptor)) and then I go to: http://localhost/index it always goes to Hunchentoot default page ? Thanks

I think you want: (push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'easy-acceptor)) Nic On Wed, Feb 8, 2012 at 8:49 AM, Haris Bogdanovich <fbogdanovic@xnet.hr>wrote:
** Hi.
I did this:
(push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'acceptor))
and then I go to:
it always goes to Hunchentoot default page ?
Thanks
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

I think you want: (push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'easy-acceptor)) I tried that but I get error that easy-acceptor is not name of a class ?

That sounds strange. What does
(require 'hunchentoot) (find-class 'hunchentoot:easy-acceptor)
give? Perhaps you forgot to put a (use-package :hunchentoot) in your code? Kind regards, Daniel Am 09.02.2012 20:48, schrieb Haris Bogdanovich:
I think you want:
(push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'easy-acceptor))
I tried that but I get error that easy-acceptor is not name of a class ?
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

That sounds strange.
What does
(require 'hunchentoot) (find-class 'hunchentoot:easy-acceptor)
Find class returns the same message that there is not such class. I installed Hunchetntoot with the latest asdf and also with Quicklisp but nothing. Indeed this is a bit strange. I have this at the beginning of the file: (defpackage x (:use :cl :hunchentoot :cl-who)) (in-package x) I'll try the same thing in Lispworks in Linux.

Hi Haris, you should go for the easy-acceptor as written in the documentation. The behaviour of the acceptor changed. http://weitz.de/hunchentoot/#start Kind regards, Daniel. Am 08.02.2012 14:49, schrieb Haris Bogdanovich:
Hi.
I did this:
(push (create-prefix-dispatcher "/index" 'index) *dispatch-table*) (start (make-instance 'acceptor))
and then I go to:
it always goes to Hunchentoot default page ?
Thanks
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
participants (3)
-
Daniel Brunner
-
Haris Bogdanovich
-
Nic M