| Author |
Message |
|
| Guest |
Posted: Sun Aug 16, 2009 11:14 am |
|
|
|
Guest
|
Hi,
I picked up a problem with starting Yaws in embedded mode.
This is present in both the the source tar and the windows installer.
In short the problem is as follows:
I call yaws:start_embedded from my application.
It calls setup_sconf to convert the List of config to #sconf{}and then
it call yaws_api:setconf(GC, [SC]) to set the fonfig.
In yaws_api:setconf it calls yaws_config:verify_upgrade_args(GC0,
Groups0) which requires Groups0 to be a list of lists.
I changed the yaws_api:setconf(GC, [[SC]]) in order to start embedded yaws.
I just want to find out if it is a problem or am I giving it incorrect
configuration information?
Thanks
Jan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Aug 16, 2009 2:08 pm |
|
|
|
Guest
|
On Sun, Aug 16, 2009 at 5:27 AM, Jan Jacobs <hpjcon@mweb.co.za (hpjcon@mweb.co.za)> wrote:
Quote: Hi,
I picked up a problem with starting Yaws in embedded mode.
This is present in both the the source tar and the windows installer.
In short the problem is as follows:
I call yaws:start_embedded from my application.
It calls setup_sconf to convert the List of config to #sconf{}and then
it call yaws_api:setconf(GC, [SC]) to set the fonfig.
In yaws_api:setconf it calls yaws_config:verify_upgrade_args(GC0,
Groups0) which requires Groups0 to be a list of lists.
I changed the yaws_api:setconf(GC, [[SC]]) in order to start embedded yaws.
I just want to find out if it is a problem or am I giving it incorrect
configuration information?
If you're saying that you changed the yaws_api.erl source as shown in the 1.84 patch below I sent out a few weeks ago, then yes, that's the correct fix to make.
--steve
diff --git a/src/yaws.erl b/src/yaws.erl
index bc480b0..964f5e0 100644
--- a/src/yaws.erl
+++ b/src/yaws.erl
@@ -140,7 +140,7 @@ start_embedded(DocRoot, SL, GL, Id) when is_list(DocRoot),is_list(SL),is_list(GL
|
|
|
| Back to top |
|
| Guest |
Posted: Sun Aug 16, 2009 2:40 pm |
|
|
|
Guest
|
Yes, I just upgraded last night from 1.77.
Thanks
Jan
Steve Vinoski wrote:
>
> On Sun, Aug 16, 2009 at 5:27 AM, Jan Jacobs <hpjcon@mweb.co.za
> <mailto:hpjcon@mweb.co.za>> wrote:
>
> Hi,
>
> I picked up a problem with starting Yaws in embedded mode.
> This is present in both the the source tar and the windows installer.
>
> In short the problem is as follows:
> I call yaws:start_embedded from my application.
> It calls setup_sconf to convert the List of config to #sconf{}and then
> it call yaws_api:setconf(GC, [SC]) to set the fonfig.
> In yaws_api:setconf it calls yaws_config:verify_upgrade_args(GC0,
> Groups0) which requires Groups0 to be a list of lists.
>
> I changed the yaws_api:setconf(GC, [[SC]]) in order to start
> embedded yaws.
>
> I just want to find out if it is a problem or am I giving it incorrect
> configuration information?
>
>
> If you're saying that you changed the yaws_api.erl source as shown in
> the 1.84 patch below I sent out a few weeks ago, then yes, that's the
> correct fix to make.
>
> --steve
>
> diff --git a/src/yaws.erl b/src/yaws.erl
> index bc480b0..964f5e0 100644
> --- a/src/yaws.erl
> +++ b/src/yaws.erl
> @@ -140,7 +140,7 @@ start_embedded(DocRoot, SL, GL, Id) when
> is_list(DocRoot),is_list(SL),is_list(GL
> GC = setup_gconf(GL, yaws_config:make_default_gconf(false, Id)),
> SC = setup_sconf(DocRoot, #sconf{}, SL),
> yaws_config:add_yaws_soap_srv(GC),
> - yaws_api:setconf(GC, [SC]).
> + yaws_api:setconf(GC, [[SC]]).
>
> add_server(DocRoot, SL) when is_list(DocRoot),is_list(SL) ->
> SC = setup_sconf(DocRoot, #sconf{}, SL),
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.392 / Virus Database: 270.13.58/2305 - Release Date: 08/15/09 18:10:00
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|