[plt-scheme] web server question

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Thu Mar 5 14:18:12 EST 2009

Hi, I've been using the Simple Single Servlet Servers
(require<file:///Applications/PLT%20Scheme%20Full%20v4.1.4.3/doc/reference/require.html#%28form._%28%28lib._scheme/base..ss%29._require%29%29>
web-server/servlet-env<file:///Applications/PLT%20Scheme%20Full%20v4.1.4.3/doc/web-server/servlet-env_ss.html>)
to embed a web server in a gui app.

I'm now keen to run more than one servlet, so I'm trying out
web-server/web-server to run multiple servlets, but I'm running into an
error that I can't seem to work out - it weirdly only shows when I click
back into drscheme.

;;
Welcome to DrScheme, version 4.1.4.3-svn2mar2009 [3m].
Language: Module custom.
procedure application: expected procedure, given: false; arguments were:
"/vi-events.html" false false
procedure application: expected procedure, given: false; arguments were:
"/favicon.ico" false false
procedure application: expected procedure, given: false; arguments were:
"/favicon.ico" false false
>
;;

The page I'm trying to retrieve;
http://localhost:8081/vi-events.html

my layout of files is:
server2.ss
conf/config-table.ss
files/vi-events.html

;;;;;
#lang scheme/gui
(require web-server/web-server
         web-server/web-config-unit
         )

(define stop-server void)
(define (start-file-server)
  (set! stop-server (serve/web-config@
   (configuration-table->web-config@
    "conf/config-table.ss"
    ;    #:port 8081
    ))))

(start-file-server)

;;part of conf/config-table.ss ;;
     (paths
      (configuration-root "conf")
      (host-root ".")
      (log-file-path "log")
      (file-root "files")
      (servlet-root ".")
      (mime-types "mime.types")
;;;



Cheers,

Stephen

--
Stephen De Gabrielle
s.degabrielle at cs.ucl.ac.uk
Telephone +44 (0)20 7679 0693 (x30693)
Mobile                  079 851 890 45
Project: Making Sense of Information (MaSI)
Work:http://www.uclic.ucl.ac.uk/annb/MaSI.html
Home:http://www.degabrielle.name/stephen


UCL Interaction Centre
MPEB 8th floor
University College London
Gower Street
London WC1E 6BT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090305/39b56f19/attachment.html>

Posted on the users mailing list.