Hi Martin,

The error message that you are seeing indicates that <secure-context>
is being called somewhere. This should only be called or used if the
io.sockets.secure vocabulary is being used, which should not be the
case for Windows because we agreed that we disabled/commented those
lines in the webapps/todo.factor file.

Did you reload the webapps.todo file after you modified it? You can do
this with:
(scratchpad) "webapps.todo" reload

Then you can try running webapps.todo again to see if this worked.

By the way -- I tried this on Windows Vista, 32-bit Home Premium
Edition with the latest git build. Did you use the versions downloaded
from the factorcode.org site, or did you build the latest git version?


Regards,
Dave

On Mon, Aug 22, 2011 at 2:10 AM, Martin Saurer <martin.sau...@bluewin.ch> wrote:
> Dave,
>
> Thanks for your hints.
>
> When I exactly do what you describe, I get the following error:
>
>   Generic word <secure-context> does not define a method for the POSTPONE:
> f class.
>
> when executing the statement:
>
>   "webapps.todo" run
>
>
> I have had to comment out the whole <todo-secure-config> word, to make
> the server start.
>
> The server starts, and I can connect, but get the error described
> in my first email in the web server log file.
>
> I'm getting crazy ...
>
> Kind Regards
> Martin
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: otoburb [mailto:otob...@gmail.com]
> Gesendet: Sonntag, 21. August 2011 19:49
> An: factor-talk@lists.sourceforge.net
> Betreff: Re: [Factor-talk] webapps.todo
>
> Hi Martin,
>
> I just ran the webapps.todo application and registered, logged in and
> created a sample todo list.
> Here's what I did.
>
> 1) As you said, modify the webapps.todo (under Windows) so that it
> "disables" the secure configuration. This is done by commenting out
> line 158 and 160, and adding a semi-colon to the end of line 159. The
> relevant code snippet below:
>
> : <todo-website-server> ( -- threaded-server )
>    <http-server>
> !        <todo-secure-config> >>secure-config
>        8080 >>insecure ;
> !        8431 >>secure ;
>
>
> 2) In the Factor listener, I typed:
>
> (scratchpad) USE: webapps.todo
> (scratchpad) "webapps.todo" run
>
> 3) http://localhost:8080
>
> I am using Windows Vista.
>
>
>
> Regards,
> Dave
>
>
> On Sun, Aug 21, 2011 at 6:34 AM, Martin Saurer <martin.sau...@bluewin.ch>
> wrote:
>> Dear all,
>>
>>
>>
>> Has anybody successfully setup and run the webapps.todo application
>>
>> under Windows?
>>
>>
>>
>> I know, there seems to be no factor-compatible openssl implementation
>>
>> for Windows.
>>
>> So I modified the todo.factor to "disable" the secure configuration
>>
>> and run the webapp on the insecure port 8080 only.
>>
>>
>>
>> But when I try to connect to this webapp, a server error is reported in
>>
>> the browser, and the server logfile says:
>>
>>
>>
>> [2011-08-21T11:29:56+02:00] NOTICE handle-client: { T{ duplex-stream f
>> ~decoder~ ~encoder~ } T{ inet6 f "0:0:0:0:0:0:0:1" 49764 } T{ inet6 f
>> "0:0:0:0:0:0:0:0" 8080 } }
>>
>> [2011-08-21T11:29:56+02:00] NOTICE accepted-connection: remote:
>> 0:0:0:0:0:0:0:1:49764, local: 0:0:0:0:0:0:0:0:8080
>>
>> [2011-08-21T11:29:56+02:00] NOTICE handle-client: { T{ duplex-stream f
>> ~decoder~ ~encoder~ } T{ inet6 f "0:0:0:0:0:0:0:1" 49765 } T{ inet6 f
>> "0:0:0:0:0:0:0:0" 8080 } }
>>
>> [2011-08-21T11:29:56+02:00] NOTICE accepted-connection: remote:
>> 0:0:0:0:0:0:0:1:49765, local: 0:0:0:0:0:0:0:0:8080
>>
>> [2011-08-21T11:29:56+02:00] NOTICE httpd-hit: { "GET" URL"
>> http://localhost:8080/"; }
>>
>> [2011-08-21T11:29:56+02:00] NOTICE httpd-header: { "user-agent"
> "Mozilla/5.0
>> (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)" }
>>
>> [2011-08-21T11:29:56+02:00] NOTICE httpd-header: { "x-forwarded-for" f }
>>
>> [2011-08-21T11:29:56+02:00] DEBUG init-user: f
>>
>> [2011-08-21T11:29:56+02:00] ERROR do-request: Generic word port>> does not
>> define a method for the POSTPONE: f class.
>>
>> [--------------------] ERROR do-request: Dispatching on object: f
>>
>>
>>
>> What am I missing ???
>>
>>
>>
>> Many thanks in advance.
>>
>>
>>
>> Martin
>>
>>
>>
>>
>>
>>
> ----------------------------------------------------------------------------
> --
>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
>> user administration capabilities and model configuration. Take
>> the hassle out of deploying and managing Subversion and the
>> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>
>
> ----------------------------------------------------------------------------
> --
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to