You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ivan Mikushin <iv...@openmechanics.net> on 2002/09/26 17:14:44 UTC

jk2 and unix sockets

Hi all!

I have tried to configure Apache 1.3.26 + mod_jk2 to connect to Tomcat 4.1.12 
using UNIX sockets, but failed. In jk2.properties I have the following:

handler.list=channelUnix
channelUnix.file=${jkHome}/work/jk2.socket

When Tomcat starts the jk2.socket file must appear in the specified location, 
right? I don't see it happen. 
Am I missing something? An example from the JK2 doc has this:

handler.list=channelUnix
channelUnix.file=${jkHome}/work/jk2.socket
apr.NativeSo=${jtc}/jk/build/jk2/apache2/jkjni.so

I haven't enabled JNI when I configured mod_jk2 build, because I haven't read 
anywhere that it's required for the UNIX sockets channel to work. I've built 
mod_jk2 this way:

cd /home/ivan/temp/install/jakarta-tomcat-connectors-4.1.12-src/jk/native2
./buildconf.sh
./configure --with-apxs=/usr/sbin/apxs
make

Are the other handlers (apr, request) required in jk2.properties for the UNIX 
sockets to work?

I've been reading the list for a while now and saw some people say they got 
unix sockets working (for Apache+JK2+Tomcat4.1). Please submit any clues on 
how you got it working.

Thanks!

Ivan.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>