Hi, I've been using the <a name="(part._servlet-env..ss)"></a><a name="(mod-path._web-server/servlet-env)"></a>Simple Single Servlet Servers <span class="hspace"></span><span class="schemeparen">(</span><span class="schemesymbol"><a href="file:///Applications/PLT%20Scheme%20Full%20v4.1.4.3/doc/reference/require.html#%28form._%28%28lib._scheme/base..ss%29._require%29%29" class="schemesyntaxlink">require</a></span><span class="stt"> </span><a href="file:///Applications/PLT%20Scheme%20Full%20v4.1.4.3/doc/web-server/servlet-env_ss.html" class="schememodlink"><span class="schemesymbol">web-server/servlet-env</span></a><span class="schemeparen">) to embed a web server in a gui app. <br>
<br>I'm now keen to run more than one servlet, so I'm trying out </span><span class="schemeparen"> web-server/web-server</span> 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.<br>
<br>;;<br>Welcome to DrScheme, version 4.1.4.3-svn2mar2009 [3m].<br>Language: Module custom.<br>procedure application: expected procedure, given: false; arguments were: "/vi-events.html" false false<br>procedure application: expected procedure, given: false; arguments were: "/favicon.ico" false false<br>
procedure application: expected procedure, given: false; arguments were: "/favicon.ico" false false<br>> <br>;;<br><br>The page I'm trying to retrieve; <br>
<a href="http://localhost:8081/vi-events.html">http://localhost:8081/vi-events.html</a><br><br>my layout of files is:<br>server2.ss<br>conf/config-table.ss<br>files/vi-events.html<br><span class="schemeparen"><br>;;;;;<br>
#lang scheme/gui<br>(require web-server/web-server<br> web-server/web-config-unit <br> )<br><br>(define stop-server void)<br>(define (start-file-server)<br> (set! stop-server (serve/web-config@<br>
(configuration-table->web-config@<br> "conf/config-table.ss"<br> ; #:port 8081<br> ))))<br><br>(start-file-server)<br><br>;;part of </span>conf/config-table.ss <span class="schemeparen">;;<br> (paths<br>
(configuration-root "conf")<br> (host-root ".")<br> (log-file-path "log")<br> (file-root "files")<br> (servlet-root ".")<br> (mime-types "mime.types")<br>
</span>;;;<br><br><br><br>Cheers,<br><br>Stephen<br><br>--<br>Stephen De Gabrielle<br><a href="mailto:s.degabrielle@cs.ucl.ac.uk">s.degabrielle@cs.ucl.ac.uk</a><br>Telephone +44 (0)20 7679 0693 (x30693)<br>Mobile 079 851 890 45<br>
Project: Making Sense of Information (MaSI)<br>Work:<a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html">http://www.uclic.ucl.ac.uk/annb/MaSI.html</a><br>Home:<a href="http://www.degabrielle.name/stephen">http://www.degabrielle.name/stephen</a><br>
<br><br>UCL Interaction Centre<br>MPEB 8th floor<br>University College London<br>Gower Street<br>London WC1E 6BT<br>