The patch fixed the problem as expected. My thanks to Steve.

- Dave

On Aug 1, 2009 4:54pm, Steve Vinoski <vinoski@ieee.org> wrote:
>
>
> On Sat, Aug 1, 2009 at 7:36 PM, Dave.Revell@gmail.com> wrote:
>
> I'm running Yaws 1.84, and I'm having a problem with start_embedded/2.
>
> According to the Yaws website page about embedding (http://yaws.hyber.org/embed.yaws), the following line should start Yaws in embedded mode:
>
>
> 1> yaws:start_embedded("/home/tobbe/docroot", [{servername, "sej"}, {listen, {0,0,0,0}}]).
>
> However, when I run it, there is a "badgroups" exception.
>
>
>
> Bug. Either grab the latest bits from github or try the patch below.
>
>
> --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),
>
>
>
>