Andrew Borley wrote:
On 12/7/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
Andrew Borley wrote:
> On 12/5/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
>> Andrew Borley wrote:
>> > On 11/20/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
>> >> Jean-Sebastien Delfino wrote:
>> >> > Hi,
>> >> >
>> >> > I checked in a version of Bigbank configured to run with Apache
>> Httpd
>> >> > (instead of the Axis2 mini HTTP server) under
>> >> > cpp/sca/samples/HttpdBigbank. This is a slightly more distributed
>> >> > version of the original Ruby Bigbank app, with the account
>> service and
>> >> > account data service in different SCA composites. The httpserver
>> >> > directory contains scripts to start/stop Httpd and a very minimal
>> >> > Httpd configuration, tested on Linux with Apache httpd 2.2.3.
>> You will
>> >> > need to complete this conf to make it point to your Axis2C home
>> >> > directory, as described in the README file.
>> >> >
>> >> > I'd like to have all our samples running like this behind Apache
>> >> > httpd. Could you please take a look? see if it can work the same
>> way
>> >> > on Windows, and let me know your comments? Thanks.
>> >> >
>> >>
>> >> I further simplified the configuration, with revision r476996 you
>> don't
>> >> need to make any changes to httpd.conf. The start script now
>> generates
>> >> it for you.
>> >>
>> >
>> > I've just committed a few files to allow this sample to run under
>> > windows - unfortunately there's a Ruby bug at the moment so it
>> > currently segv's, but it was pretty much working before I did an svn
>> > up, so I've put it in!
>> >
>> > Cheers
>> >
>> > Andy
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> Cool! What is causing a segv? Is there a bug in the Ruby interpreter? or
>> is this a bug in our code that we can fix?
>>
>
> I believe it's in our code - none of the Ruby samples currently work.
> I haven't had time to pin it down yet..
>
> Andy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Andy,

Which Ruby binary distribution are you using? I remember Simon saying he
had trouble with the Cigwin Ruby based distribution. I have installed
the one click ruby installer for windows at
http://rubyinstaller.rubyforge.org/wiki/wiki.pl and will give it a try
as well.

I now have the other Ruby samples working, but the HttpdBigBank is
still falling over. Debugging it inside httpd is near impossible, so I
was going to get a local client running - I'm wondering if it's
something to do with the multiple calls into the Axis2C stack that the
sample does, but at this point it's mostly conjecture.

Cheers
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Andy,

What was causing the Ruby samples to fail initially, is it anything that we can improve in our code, or document better so that people don't run into this?

Apache httpd is difficult to debug if you start it with apachectl - k start, but there's a way to start it with httpd -X so that it doesn't fork processes and stays attached to the current console, so you also see any printf output from your code. Here's what I have been doing to debug on Linux and this allowed me to set breakpoints and debug as usual:
httpd -k start -X -d $TUSCANY_SCACPP/samples/HttpdBigBank/deploy/httpserver

Also, the HttpdBigBank scenario is made of 2 composites, AccountService calls AccountDataService to get data on the customer's accounts. Since this scenario requires two processes (the first one calling the second one), to run it in this debug mode, you'll need two HTTP servers, each one running a single process. To configure this you can simply make a copy of the httpserver sample dir, adjust its port number in httpd.conf, adjust the binding URIs in the sample SCDL to connect the two together.

Another thing you can do is bring up the scenario step by step, and first check that AccountDataService works without AccountService in the picture, using a Web Service test client to invoke AccountDataService from its WSDL for example.

Are you getting a specific exception? Do the logs tell you in which composite the problem occurs?

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to