Re: channelUnix.file is missing

2004-10-29 Thread FM
Thanks,
I modified my jk2.properties but now in catalina.out I have :
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

How can I load APR ?
Thanks... again :-)

Nikola Milutinovic wrote:
FM wrote:
I read that tomcat is supposed to create the 
channelUnix.file=${jkHome}/work/jk2.socket file. But it did not.

I use the binary of tomcat, do i have to use src to be able to use 
unixsocket ?

In order to use a UNIX file system socket, you need to build and use 
jkJNI.so alongside mod_jk2.so.

jk JNI is Jakarta (mod_jk2) Java Native Interface and is neccessary 
for UNIX sockets, since that concept is non existant in JVM. Then you 
need to tell Tomcat (actually Coyote JK2 module) where that shlib is, 
in order to make it possible to use UNIX socket.

This is from my jk2.config
#
# Environment
#
jkHome=Apache-2.0.50-Jk2-2.0.4
jkUSR=/usr/opt/${jkHome}
jkVAR=/var/opt/${jkHome}
# Set the desired handler list
handler.list=apr,request,channelUnix
#
# APR
#
apr.NativeSo=${jkUSR}/module/jkjni.so
apr.baseDir=${jkVAR}
apr.aprHome=/usr/opt/Apache-2.0.50-W
apr.soExt=so
#
# UNIX file socket channel
#
channelUnix.file=${jkVAR}/channels/jk2.sock
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: channelUnix.file is missing

2004-10-29 Thread Nikola Milutinovic
FM wrote:
Thanks,
I modified my jk2.properties but now in catalina.out I have :
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: 
/usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final

How can I load APR ?
This is a common problem on Linux, I believe there are a couple of 
HowTo-s. Basically, when building it, you need to either manually or by 
modifying the Makefile, add -lapr -laprutil to link flags for jkjni.so.

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


channelUnix.file is missing

2004-10-28 Thread FM
I read that tomcat is supposed to create the 
channelUnix.file=${jkHome}/work/jk2.socket file. But it did not.

I use the binary of tomcat, do i have to use src to be able to use 
unixsocket ?

Thanks
FM
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: channelUnix.file is missing

2004-10-28 Thread Nikola Milutinovic
FM wrote:
I read that tomcat is supposed to create the 
channelUnix.file=${jkHome}/work/jk2.socket file. But it did not.

I use the binary of tomcat, do i have to use src to be able to use 
unixsocket ?
In order to use a UNIX file system socket, you need to build and use 
jkJNI.so alongside mod_jk2.so.

jk JNI is Jakarta (mod_jk2) Java Native Interface and is neccessary for 
UNIX sockets, since that concept is non existant in JVM. Then you need 
to tell Tomcat (actually Coyote JK2 module) where that shlib is, in 
order to make it possible to use UNIX socket.

This is from my jk2.config
#
# Environment
#
jkHome=Apache-2.0.50-Jk2-2.0.4
jkUSR=/usr/opt/${jkHome}
jkVAR=/var/opt/${jkHome}
# Set the desired handler list
handler.list=apr,request,channelUnix
#
# APR
#
apr.NativeSo=${jkUSR}/module/jkjni.so
apr.baseDir=${jkVAR}
apr.aprHome=/usr/opt/Apache-2.0.50-W
apr.soExt=so
#
# UNIX file socket channel
#
channelUnix.file=${jkVAR}/channels/jk2.sock
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]