f



Help can't run properly Apache 2.0.48 / mod_jk2 (2.0.2) /Tomcat 4 on Solaris 9

Does someone succeed to run Apache 2.0.48 / mod_jk2 (2.0.2) /Tomcat 4 on Solaris 9?

Does someone manage to make this work with a mod_jk2 (2.0.2)? I just get
a lot of "Can't find child ... in scoreboard" (looks like
<http://issues.apache.org/bugzilla/show_bug.cgi?id=19044>).  It seems to 
me that Apache launches its children processes and its modules 
concurrently; I once got a child process finish to configure after 
mod_jk2, and it went recognized (in the log: first a bunch of
"jk2_init() Can't find child 20363 in scoreboard; workerEnv.init() ok
/usr/local/httpd-2.0.48/conf/workers2.properties; mod_jk child init 1
-2" for child processes that had finished their loading before mod_jk2,
then "Apache/2.0.48 (Unix) mod_jk2/2.0.2 configured -- resuming normal
operations", then the last child finishing and resulting in a "Found
child ..." from mod_jk2).

I then tried compiling Apache with a "worker" MGM (instead of the 
default "prefork") and changing the StartServers parameter to 0 so that
child processes are started after Apache's modules configuration, but it
doesn't work either.

I compiled Apache with gcc3:
../configure --prefix="$HTTPD_DIR" --enable-module=most 
--enable-shared=most --without-gdbm --without-berkeley-db --with-mpm=worker
(the "without"s are mostly for avoiding to compile some things present 
on a dev machine but not on the deployment one).
And mod_jk2 with:
# I first modified jk_ws.m4 which seems bugged in JK_WS_INCDIR (3 params
# expected, 2 used by configure.in.
# configure.in needed some rework too, by replacing a if ! ${TEST} by
# if ${TEST} !
sh buildconf.sh
# --target=NONE to force subscripts to use the configure-detected system
../configure --with-apache2-include="$HTTPD_DIR/include" 
--with-apache2-lib="$HTTPD_DIR/lib" --with-apxs2="$HTTPD_DIR/bin/apxs" 
--with-tomcat41="$TOMCAT_DIR" --target=NONE



Thanks!
0
pierre
1/9/2004 5:32:30 PM
comp.unix.solaris 26025 articles. 2 followers. Post Follow

1 Replies
931 Views

Similar Articles

[PageSpeed] 44

pierre.hafeneder@c-s.fr (PH) sent my problem to this newsgroup:

> Does someone succeed to run Apache 2.0.48 / mod_jk2 (2.0.2) /Tomcat 4 on Solaris 9?
> 
> Does someone manage to make this work with a mod_jk2 (2.0.2)? I just get
> a lot of "Can't find child ... in scoreboard" (looks like
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=19044>).

OK, I went to tomcat-users mailing list and was told it wasn't a
problem. The reason why I could not connect was mostly due to the fact
my Apache compilation did not generate any shared object for libapr
and libaprutil (and I had to finish the mod_jk2 compilation by hand,
with random results).

Going to Apache compilation directory, doing a make clean then
../configure ... --enable-so --enable-rule=SHARED_CORE
--enable-static=no --enable-shared=yes made it to work (certainly not
all those options were necessary, but at least it works).

I still have the "Child not found" error, but Apache and Tomcat
communicate peacefully.

-- 
Guillaume Outters
0
guillaume
1/16/2004 8:46:38 AM
Reply: