i downloaded ejabberd-2.1.9 and compiled it successfully on windows 7 platform.
when i started ejabberd, i encountered trouble.
i can not get through the following function.
add_iq_handler(Component, Host, NS, Module, Function, Type) ->
case Type of
no_queue ->
Component:register_iq_handler(Host, NS, Module, Function, no_queue);
one_queue ->
{ok, Pid} = supervisor:start_child(ejabberd_iq_sup,
[Host, Module, Function]),
Component:register_iq_handler(Host, NS, Module, Function,
{one_queue, Pid});
{queues, N} ->
Pids =
lists:map(
fun(_) ->
{ok, Pid} = supervisor:start_child(
ejabberd_iq_sup,
[Host, Module, Function]),
Pid
end, lists:seq(1, N)),
Component:register_iq_handler(Host, NS, Module, Function,
{queues, Pids});
parallel ->
Component:register_iq_handler(Host, NS, Module, Function, parallel)
end.
module:gen_iq_handler
trouble position: {ok, Pid} = supervisor:start_child(ejabberd_iq_sup,[Host, Module, Function])
failed reason:{noproc, {gen_server, call, [ejabberd_iq_sup, {start_child, ["tcim.com", mod_adhoc, process_local_iq]}, infinity]}}
i can not find "ejabberd_iq_sup" process in registered process list!
who can give me a solution about this problem.
thanks a lot.
i have solved this problem!!
i have solved this problem!!
could u pls explain as to how
could u pls explain as to how u installed ejabberd on windows from source code..
i am stuck and have no clue how to proceed..
ur reply will be of gr8 help
thank u