You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nikola Milutinovic <Ni...@ev.co.yu> on 2003/09/11 19:11:43 UTC

Re: Building/using JK2 - linking problem - SOLVED, mostly

> I had similar problems with loading shared libraries
> until I recompiled jk2 after configuring it with the
> "./configure --with-apxs=/some/path/to/apache2/bin/apxs"

Got it to compile and load, had to add this into the
./src/jk/native2/server/apache2/Makefile:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -laprutil-0 -lgdbm -lexpat -l
db-4.0 -lpthread -ldl

Now, when loading, I get another, sort of, error:

Starting service Tomcat-Standalone
Apache Tomcat/4.1
[Thu Sep 11 18:55:22 2003] (error ) [jk_config_file.c (279)]
config.update(): Can't find config
file ${serverRoot}/conf/workers2.properties
[Thu Sep 11 18:55:22 2003] ( info ) [jk_config.c (251)]
config.setAttribute() Error setting conf
ig: file ${serverRoot}/conf/workers2.properties
[Thu Sep 11 18:55:22 2003] ( info ) [jk_logger_file.c (184)]  Initializing
log file stderr
[Thu Sep 11 18:55:22 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
[Thu Sep 11 18:55:22 2003] ( info ) [jk_workerEnv.c (403)]  workerEnv.init()
ok ${serverRoot}/con
f/workers2.properties

FWIW, the socket is there, but SHM file is not. I don't exactly need it (I
think), so it's not a big deal. Is there anything more comprehensive on the
purpose of particular components?

I guess I have a vague idea what "apr" does, I'm clear on "channelSocket"
and "channelUnix", but what is the purpose of "request"?

Nix.