You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rhugga <to...@echeeba.com> on 2003/09/26 17:14:14 UTC

Error Finding config file: workers2.properties

I get this error during tomcat 4.2.27 startup:

INFO: Starting Coyote HTTP/1.1 on port 8443
[Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] 
config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
operties
[Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] 
config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
2.properties
[Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)] 
Initializing log file stderr
[Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
[Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)] 
workerEnv.init() ok ${serverRoot}/conf/workers2.properties

Here is the connector definition from server.xml:

<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
      port="8443" minProcessors="5" maxProcessors="75"
      enableLookups="true" serverRoot="/usr/local/jakarta-tomcat-4.1.27"
      acceptCount="100" debug="5" scheme="https" secure="true"
      useURIValidationHack="false" disableUploadTimeout="true">
     <Factory
         className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
         clientAuth="false" protocol="TLS" />
     <parameter>
         <name>serverRoot</name>
         <value>/usr/local/jakarta-tomcat-4.1.27</value>
     </parameter>
</Connector>

My workers2.properties file is here:
ganja:/usr/local/tomcat/conf #ls -l 
/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
-rw-r--r--   1 tomcat   httpd        258 Aug 30 23:14 
/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties

The contents of this file are as follows:
[shm]
file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
size=1048576

# Example unixsocket channel.
[channel.un:unixsocket]
file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket

# define the worker
[ajp13:unixsocket]
channel=channel.un:unixsocket

Any ideas?

Thx,
Chuck



Re: Error Finding config file: workers2.properties

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> INFO: Starting Coyote HTTP/1.1 on port 8443
> [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
> config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
> operties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
> config.setAttribute() Error setting config: file
${serverRoot}/conf/workers
> 2.properties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
> Initializing log file stderr
> [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
> workerEnv.init() ok ${serverRoot}/conf/workers2.properties

This seams to be a still present bug of mod_jk2 java sources. Aparently, the
only way to define that property, "serverRoot" is to define and export it as
an environment variable in one of the satrtup scripts, "catalina.sh" or
"startup.sh".

Nix.


Re: Error Finding config file: workers2.properties

Posted by Rhugga <to...@echeeba.com>.
Nikola Milutinovic wrote:
>>Duncan Smith wrote:
>>
>>
>>>I had same problem.
>>>I found that if the workers2.properties file was supposed to be in
>>>{apache-home}/conf/
> 
> 
>>Yea, I symbolically linked it there as well, but still nada. Will it not
>>follow symbolic links?
> 
> 
> I said before, as I learned from another guy on this list, jk2 configuration
> files on the Tomcat side do not support "serverRoot". Actually, you can
> define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
> "jkjni.so" modules will not pick it up (and those are complaining), unless
> you define it as an environment variable.
> 
> Nix.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

I added it to catalina.sh and got rid of the message.

serverRoot=/blah
export serverRoot

Not sure if the explicit export is needed I put them both in at once.

-CC



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


Re: Error Finding config file: workers2.properties

Posted by Rhugga <to...@echeeba.com>.
Nikola Milutinovic wrote:
>>Duncan Smith wrote:
>>
>>
>>>I had same problem.
>>>I found that if the workers2.properties file was supposed to be in
>>>{apache-home}/conf/
> 
> 
>>Yea, I symbolically linked it there as well, but still nada. Will it not
>>follow symbolic links?
> 
> 
> I said before, as I learned from another guy on this list, jk2 configuration
> files on the Tomcat side do not support "serverRoot". Actually, you can
> define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
> "jkjni.so" modules will not pick it up (and those are complaining), unless
> you define it as an environment variable.
> 
> Nix.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

I added it to catalina.sh and got rid of the message.

serverRoot=/blah
export serverRoot

Not sure if the explicit export is needed I put them both in at once.

-CC



Re: Error Finding config file: workers2.properties

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> Duncan Smith wrote:
>
> >I had same problem.
> >I found that if the workers2.properties file was supposed to be in
> >{apache-home}/conf/

> Yea, I symbolically linked it there as well, but still nada. Will it not
> follow symbolic links?

I said before, as I learned from another guy on this list, jk2 configuration
files on the Tomcat side do not support "serverRoot". Actually, you can
define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
"jkjni.so" modules will not pick it up (and those are complaining), unless
you define it as an environment variable.

Nix.


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


Re: Error Finding config file: workers2.properties

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> Duncan Smith wrote:
>
> >I had same problem.
> >I found that if the workers2.properties file was supposed to be in
> >{apache-home}/conf/

> Yea, I symbolically linked it there as well, but still nada. Will it not
> follow symbolic links?

I said before, as I learned from another guy on this list, jk2 configuration
files on the Tomcat side do not support "serverRoot". Actually, you can
define and use it in ${CATALINA_HOME}/config/jk2.properties, but the
"jkjni.so" modules will not pick it up (and those are complaining), unless
you define it as an environment variable.

Nix.


Re: Error Finding config file: workers2.properties

Posted by Rhugga <to...@echeeba.com>.
Duncan Smith wrote:

>I had same problem.
>I found that if the workers2.properties file was supposed to be in
>{apache-home}/conf/
>
>Good luck :-)
>Duncan Smith
>Decker Telecom Ltd
>
>Rhugga wrote:
>
>  
>
>>I get this error during tomcat 4.2.27 startup:
>>
>>INFO: Starting Coyote HTTP/1.1 on port 8443
>>[Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
>>config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
>>operties
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
>>config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
>>2.properties
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
>>Initializing log file stderr
>>[Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
>>workerEnv.init() ok ${serverRoot}/conf/workers2.properties
>>
>>Here is the connector definition from server.xml:
>>
>><!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
>><Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>      port="8443" minProcessors="5" maxProcessors="75"
>>      enableLookups="true" serverRoot="/usr/local/jakarta-tomcat-4.1.27"
>>      acceptCount="100" debug="5" scheme="https" secure="true"
>>      useURIValidationHack="false" disableUploadTimeout="true">
>>     <Factory
>>         className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>>         clientAuth="false" protocol="TLS" />
>>     <parameter>
>>         <name>serverRoot</name>
>>         <value>/usr/local/jakarta-tomcat-4.1.27</value>
>>     </parameter>
>></Connector>
>>
>>My workers2.properties file is here:
>>ganja:/usr/local/tomcat/conf #ls -l
>>/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>>-rw-r--r--   1 tomcat   httpd        258 Aug 30 23:14
>>/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>>
>>The contents of this file are as follows:
>>[shm]
>>file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
>>size=1048576
>>
>># Example unixsocket channel.
>>[channel.un:unixsocket]
>>file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket
>>
>># define the worker
>>[ajp13:unixsocket]
>>channel=channel.un:unixsocket
>>
>>Any ideas?
>>
>>Thx,
>>Chuck
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

Yea, I symbolically linked it there as well, but still nada. Will it not 
follow symbolic links?

Thx,
CC


Re: Error Finding config file: workers2.properties

Posted by Rhugga <to...@echeeba.com>.
Duncan Smith wrote:

>I had same problem.
>I found that if the workers2.properties file was supposed to be in
>{apache-home}/conf/
>
>Good luck :-)
>Duncan Smith
>Decker Telecom Ltd
>
>Rhugga wrote:
>
>  
>
>>I get this error during tomcat 4.2.27 startup:
>>
>>INFO: Starting Coyote HTTP/1.1 on port 8443
>>[Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
>>config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
>>operties
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
>>config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
>>2.properties
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
>>Initializing log file stderr
>>[Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
>>[Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
>>workerEnv.init() ok ${serverRoot}/conf/workers2.properties
>>
>>Here is the connector definition from server.xml:
>>
>><!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
>><Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>      port="8443" minProcessors="5" maxProcessors="75"
>>      enableLookups="true" serverRoot="/usr/local/jakarta-tomcat-4.1.27"
>>      acceptCount="100" debug="5" scheme="https" secure="true"
>>      useURIValidationHack="false" disableUploadTimeout="true">
>>     <Factory
>>         className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>>         clientAuth="false" protocol="TLS" />
>>     <parameter>
>>         <name>serverRoot</name>
>>         <value>/usr/local/jakarta-tomcat-4.1.27</value>
>>     </parameter>
>></Connector>
>>
>>My workers2.properties file is here:
>>ganja:/usr/local/tomcat/conf #ls -l
>>/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>>-rw-r--r--   1 tomcat   httpd        258 Aug 30 23:14
>>/usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>>
>>The contents of this file are as follows:
>>[shm]
>>file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
>>size=1048576
>>
>># Example unixsocket channel.
>>[channel.un:unixsocket]
>>file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket
>>
>># define the worker
>>[ajp13:unixsocket]
>>channel=channel.un:unixsocket
>>
>>Any ideas?
>>
>>Thx,
>>Chuck
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

Yea, I symbolically linked it there as well, but still nada. Will it not 
follow symbolic links?

Thx,
CC


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


Re: Error Finding config file: workers2.properties

Posted by Duncan Smith <ds...@deckertelecom.net>.
I had same problem.
I found that if the workers2.properties file was supposed to be in
{apache-home}/conf/

Good luck :-)
Duncan Smith
Decker Telecom Ltd

Rhugga wrote:

> I get this error during tomcat 4.2.27 startup:
>
> INFO: Starting Coyote HTTP/1.1 on port 8443
> [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
> config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
> operties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
> config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
> 2.properties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
> Initializing log file stderr
> [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
> workerEnv.init() ok ${serverRoot}/conf/workers2.properties
>
> Here is the connector definition from server.xml:
>
> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>       port="8443" minProcessors="5" maxProcessors="75"
>       enableLookups="true" serverRoot="/usr/local/jakarta-tomcat-4.1.27"
>       acceptCount="100" debug="5" scheme="https" secure="true"
>       useURIValidationHack="false" disableUploadTimeout="true">
>      <Factory
>          className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>          clientAuth="false" protocol="TLS" />
>      <parameter>
>          <name>serverRoot</name>
>          <value>/usr/local/jakarta-tomcat-4.1.27</value>
>      </parameter>
> </Connector>
>
> My workers2.properties file is here:
> ganja:/usr/local/tomcat/conf #ls -l
> /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
> -rw-r--r--   1 tomcat   httpd        258 Aug 30 23:14
> /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>
> The contents of this file are as follows:
> [shm]
> file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
> size=1048576
>
> # Example unixsocket channel.
> [channel.un:unixsocket]
> file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket
>
> # define the worker
> [ajp13:unixsocket]
> channel=channel.un:unixsocket
>
> Any ideas?
>
> Thx,
> Chuck
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Re: Error Finding config file: workers2.properties

Posted by Duncan Smith <ds...@deckertelecom.net>.
I had same problem.
I found that if the workers2.properties file was supposed to be in
{apache-home}/conf/

Good luck :-)
Duncan Smith
Decker Telecom Ltd

Rhugga wrote:

> I get this error during tomcat 4.2.27 startup:
>
> INFO: Starting Coyote HTTP/1.1 on port 8443
> [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
> config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
> operties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
> config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
> 2.properties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
> Initializing log file stderr
> [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
> workerEnv.init() ok ${serverRoot}/conf/workers2.properties
>
> Here is the connector definition from server.xml:
>
> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>       port="8443" minProcessors="5" maxProcessors="75"
>       enableLookups="true" serverRoot="/usr/local/jakarta-tomcat-4.1.27"
>       acceptCount="100" debug="5" scheme="https" secure="true"
>       useURIValidationHack="false" disableUploadTimeout="true">
>      <Factory
>          className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>          clientAuth="false" protocol="TLS" />
>      <parameter>
>          <name>serverRoot</name>
>          <value>/usr/local/jakarta-tomcat-4.1.27</value>
>      </parameter>
> </Connector>
>
> My workers2.properties file is here:
> ganja:/usr/local/tomcat/conf #ls -l
> /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
> -rw-r--r--   1 tomcat   httpd        258 Aug 30 23:14
> /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
>
> The contents of this file are as follows:
> [shm]
> file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
> size=1048576
>
> # Example unixsocket channel.
> [channel.un:unixsocket]
> file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket
>
> # define the worker
> [ajp13:unixsocket]
> channel=channel.un:unixsocket
>
> Any ideas?
>
> Thx,
> Chuck
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Error Finding config file: workers2.properties

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> INFO: Starting Coyote HTTP/1.1 on port 8443
> [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
> config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
> operties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
> config.setAttribute() Error setting config: file
${serverRoot}/conf/workers
> 2.properties
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
> Initializing log file stderr
> [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
> [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
> workerEnv.init() ok ${serverRoot}/conf/workers2.properties

This seams to be a still present bug of mod_jk2 java sources. Aparently, the
only way to define that property, "serverRoot" is to define and export it as
an environment variable in one of the satrtup scripts, "catalina.sh" or
"startup.sh".

Nix.


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