[OGo-Developer] noob question on building sope-appserver/samples/HelloForm

Chad Leigh developer@opengroupware.org
Fri, 17 Nov 2006 23:22:04 -0700


On Oct 31, 2006, at 2:44 AM, Chad Leigh wrote:
> Let me report back after I try this again from a fresh unpacking of  
> the archive.
>
> I did not get a chance to day to mess with this.
>
> I appreciate everyone's help.
>
> Thanks
> Chad
>


Ok, I finally got back on this.  The guy who wants me to do some work  
got back to me after a pause, and we decided to procede.  The only  
downside is that it takes away from my time to work on a Cocoa  
project I have for myself I am trying to get out the door :-)

I downloaded a fresh version (4.5.9), unpacked it

did

./configure
make
sudo make install

then cd sop-appserver/samples

and was able to build some of the ObjC stuff.

So all is well so far.  This is on OS X 10.4.8

One quick question.  I know  a readme says I should always go through  
apache and the adapter, but for testing I am direct connecting on my  
Mac as I don't have apache set up.  I am running HelloForm sample and  
I run it at the commandline so

% ./HelloForm

It says it is listening on port 20000 so I do http://localhost:20000

and up comes a form with an input box and an OK button.

I type in something and hit ok.    It appears by looking in the  
Main.m file for the Main.wo component that  it should print

duration:  x.nnn

in my browser as part of the appendToResponse call

But that is going to my shell instead.  Is that right or am I doing  
something wrong?

here is sample output

Nov 17 23:12:38 HelloForm [15451]: |HelloForm| WOHttpAdaptor  
listening on address *:20000
Nov 17 23:12:51 HelloForm [15451]: <0x0x51af20 
[WOComponentRequestHandler]> -[WOComponentRequestHandler  
handleRequest:]: made context <0x0x2817200[WOContext]:  
001455ea46302817200 app=HelloForm sn=none eid=(null) rqeid=(null)>  
(cid=001455ea46302817200, sn=(null)) ..
2006-11-17 23:12:51.187 HelloForm[15451] WOCompoundElement: pool  
embedding is on.
2006-11-17 23:12:51.188 HelloForm[15451] WOCompoundElement: id  
logging is on.
duration: 0.001
localhost - - [17/Nov/2006:23:12:51 GMT] "GET / HTTP/1.1" 200 547/0  
0.033 - - -
localhost - - [17/Nov/2006:23:12:51 GMT] "GET /favicon.ico HTTP/1.1"  
404 0/0 0.004 - - -
duration: 0.000
localhost - - [17/Nov/2006:23:12:57 GMT] "POST /HelloForm.woa/wo/ 
3C5B3C5B01455EA463/001455ea46302817200.1 HTTP/1.1" 200 524/91 0.003 -  
- -
localhost - - [17/Nov/2006:23:12:57 GMT] "GET /favicon.ico HTTP/1.1"  
404 0/0 0.002 - - -
duration: 0.000
localhost - - [17/Nov/2006:23:12:59 GMT] "POST /HelloForm.woa/wo/ 
3C5B3C5B01455EA463/002455ea46902814600.1 HTTP/1.1" 200 524/91 0.003 -  
- -
localhost - - [17/Nov/2006:23:12:59 GMT] "GET /favicon.ico HTTP/1.1"  
404 0/0 0.004 - - -
duration: 0.000
localhost - - [17/Nov/2006:23:13:00 GMT] "POST /HelloForm.woa/wo/ 
3C5B3C5B01455EA463/003455ea46b02816200.1 HTTP/1.1" 200 524/91 0.002 -  
- -
localhost - - [17/Nov/2006:23:13:00 GMT] "GET /favicon.ico HTTP/1.1"  
404 0/0 0.006 - - -
^C


Thanks
Chad