[<<][sweb][>>][..]
Mon Mar 9 12:36:53 CET 2009

4.1.4

Startup breaks again with update to 4.1.4
This time it's a strange error

procedure application: expected procedure, given: #f; arguments were: "/servlets/ramblings" #f #f

 === context ===
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/web-server/dispatchers/dispatch-passwords.ss:33:2
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/more-scheme.ss:175:6: loop
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/more-scheme.ss:175:6: loop
/usr/local/plt/collects/scheme/private/more-scheme.ss:175:6: loop
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/scheme/private/contract-arrow.ss:1347:3
/usr/local/plt/collects/web-server/private/dispatch-server-unit.ss:62:2: connection-loop

Maybe it's time to move to a single-servlet server?  I don't
understand the red tape, and I currently don't need anything fancy..

Let's try to build it anew from the documentation.

OK. got something that works: start.ss:

#lang scheme
(require web-server/servlet
         web-server/servlet-env
         (rename-in "servlets/ramblings" (start servlet-start)))

(serve/servlet servlet-start
               #:port 8181
               #:command-line? #t
               #:servlet-path "/servlets/ramblings"
               #:servlet-regexp (regexp "^/servlets/ramblings")
               )



[Reply][About]
[<<][sweb][>>][..]