Hello
I attempt to use tomcat 4.1.10 and mod_jk2
my jk2.properties :
#Apache
serverRoot=/usr/local/apache
# list of needed handlers.
handler.list=apr,channelUnix,request
# Set the default port for the channelSocket
#channelSocket.port=8009
# Location of the socket.
channelUnix.file=${jkHome}/work/jk2.socket
# Dynamic library
apr.NativeSo=${jkHome}/lib/libjkjni.so
my /usr/local/apache/conf/worker2.properties :
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[channel.un:unixsocket]
file=/usr/local/tomcat/work/jk2.socket
[ajp13:unixsocket]
channel=channel.un:unixsocket
[uri:/myapp/*]
worker=ajp13:unixsocket
and my catalina.out
Starting service Tomcat-Standalone
Apache Tomcat/4.1.10-LE-jdk14
[Fri Nov 01 10:21:58 2002] (error ) [jk_config_file.c (261)] config.update(): Can't
find config file ${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_config.c (246)] config.setAttribute() Error
setting config: file ${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_logger_file.c (171)] Initializing log file
stderr
[Fri Nov 01 10:21:58 2002] (error ) [jk_shm.c (333)] shm.init(): No file
[Fri Nov 01 10:21:58 2002] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok
${serverRoot}/conf/workers2.properties
Nov 1, 2002 10:21:58 AM org.apache.jk.common.ChannelUn init
INFO: JK: listening on unix socket: /usr/local/tomcat/work/jk2.socket
Nov 1, 2002 10:21:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/338 config=/usr/local/tomcat/conf/jk2.properties
communication works but my questions are :
- How specifie path to apache in jk2.properties ? (nothing in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html)
serverRoot don't work (as we can see, there are an error at line 3 of catalina.out)
- Why specifie this path in tomcat ?
thanks