tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L Sowders" <rsowd...@usgs.gov>
Subject Re: jk2.properties
Date Fri, 01 Nov 2002 22:34:30 GMT
Instead of using the variable in workers2.properties for serverRoot, you 
can hard code it to where you've installed Apache

rls





"Maxime" <max_sts@hotmail.com>
11/01/2002 07:42 AM
Please respond to "Tomcat Users List"

 
        To:     "Tomcat Users List" <tomcat-user@jakarta.apache.org>
        cc: 
        Subject:        jk2.properties


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






--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message