mod_jk2 JNI question for the brave :) 2004-01-08 - By Yiannis Mavroukakis
Back Hi everyone,
Bringing the woes of jk2+JNI again here with the dreaded "Can't find child xx in scoreboard", since I haven't found a satisfactory answer by anyone. Using TC5 with Apache 2.0.x under Linux, I can get jk2 to work using sockets. However the fun begins when I try to use JNI. Looking at the source from mod_jk2, I have the following snippet:
workerEnv->childId = find_child_by_pid(&proc); if (workerEnv->childId == -1) { int max_daemons_limit; ap_mpm_query(AP_MPMQ_MAX_DAEMONS, &max_daemons_limit);
if (max_daemons_limit == 0) { workerEnv->childId = 0; env->l->jkLog(env, env->l, JK_LOG_INFO, "jk2_init() Found child %d in scoreboard slot %d\n", proc.pid, workerEnv->childId); } else { env->l->jkLog(env, env->l, JK_LOG_ERROR, "jk2_init() Can't find child %d in scoreboard\n", proc.pid); workerEnv->childId = -2; } } else { env->l->jkLog(env, env->l, JK_LOG_INFO, "jk2_init() Found child %d in scoreboard slot %d\n", proc.pid, workerEnv->childId);
Now, the first line is the line that tries to locate the childId of the worker in the running server threads (if I am not mistaken). find_child_by_pid will loop through all the active servers trying to find the pid passed as an argument, if it fails to do so it returns -1.
I am hazarding a guess, by saying that it must be something in my configuration, within workers2.properties. Is there anyone out there who can provide the definitive configuration file and/or guidelines for workers2.properties? The documentation on jk2 at the mo is a pile of poo (sorry guys).
Have a nice day,
Yiannis
Note:__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
|
|