The variable is a system variable.  If you intend to use it you will have
to put it in your system environment, or make sure this variable is
available to the program when it starts.  If you cannot do this, then
everyplace it is asked for in the workers2.properties and jk2.properties
files provide the complete path to the serverRoot.

Hard code was just a term that means "write the value of the variable"
instead of the variable itself.



rls



                                                                                       
                                                      
                      "Maxime"                                                         
                                                      
                      <max_sts@hotmail.        To:       "Tomcat Users List" 
<[EMAIL PROTECTED]>                                
                      com>                     cc:                                     
                                                      
                                               Subject:  Re: jk2.properties            
                                                      
                      11/04/2002 07:22                                                 
                                                      
                      AM                                                               
                                                      
                      Please respond to                                                
                                                      
                      "Tomcat Users                                                    
                                                      
                      List"                                                            
                                                      
                                                                                       
                                                      
                                                                                       
                                                      




In this configuration, serverRoot is not in worker2.properties , but in
jk2.properties...
i don't understand your answer, can you explain 'hard code it to where
you've installed Apache' ?

thanks by advance


----- Original Message -----
From: "Robert L Sowders" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:34 PM
Subject: Re: jk2.properties


> Instead of using the variable in workers2.properties for serverRoot, you
> can hard code it to where you've installed Apache
>
> rls
>
>
>
>
>
> "Maxime" <[EMAIL PROTECTED]>
> 11/01/2002 07:42 AM
> Please respond to "Tomcat Users List"
>
>
>         To:     "Tomcat Users List" <[EMAIL PROTECTED]>
>         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>
>

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







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

Reply via email to