You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gregor Schneider <rc...@googlemail.com> on 2009/05/18 20:07:27 UTC
Problems configuring mod_jk
Hi guys,
I'm about to update an old Tomcat-instance (5.5.quite_old) to the
latest 5.5, also I'm about to update an outdated mod_jk to the latest
version.
The old config of mod_jk had quite some depricated directions
included, so I changed them (opefully) according to the doc I found
here:http://tomcat.apache.org/connectors-doc/reference/workers.html
However, when I check the logs from mod_jk, I always get the following
error-messages (multiple times, I guess it's one for every virtual
host in Apache HTTPD):
[2009-05-18 19:34:44][18754:3078399680] [error]
uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker
with name 'worker' in uri map post proces
sing.
However, I do not see where I defined a worker with the name "worker".
All vhost-definitions within Apache are alike when it comes to the
jk-specs, thus I'm just posting a sample vhost-definition:
<VirtualHost *:443>
[ ...]
JkMount /SingleSignOnCLUE/* worker
JkMount /LoginData/* worker
JkMount /j_security_check worker
JkMount /IndexCLUE/* worker
JkMount /BMIWizardCLUE/* worker
JkMount /RRWizardCLUE/* worker
JkMount /DiabetesCLUE/* worker
JkMount /HyperlipCLUE/* worker
JkMount /ForeignTravelCLUE/* worker
JkMount /MartialArtsCLUE/* worker
#
JkRequestLogFormat "%b %m %q %s %T"
[ ...]
</VirtualHost>
My jk.conf:
JkWorkersFile "/etc/apache2/workers.properties"
JkLogFile "|/usr/bin/cronolog -S/var/log/apache2/mod_jk.log
/var/log/apache2/%Y/%m/mod_jk-%d.log"
JkLogLevel info
JkLogStampFormat "[%F %T]"
And here come my workers.properties:
# workers.properties - ajp13
#
# List workers
worker.list=wrkr
# Define wrkr
worker.wrkr.port=8009
worker.wrkr.host=127.0.0.1
worker.wrkr.type=ajp13
worker.wrkr.connection_pool_size=30
worker.wrkr.connection_pool_timeout=60
worker.wrkr.socket_timeout=60
worker.wrkr.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=wrkr
Versions I'm using:
Using CATALINA_BASE: /home/tomcat/www
Using CATALINA_HOME: /home/tomcat/www
Using CATALINA_TMPDIR: /home/tomcat/www/temp
Using JRE_HOME: /opt/jdk1.5
Server version: Apache Tomcat/5.5.27
Server built: Aug 28 2008 10:08:26
Server number: 5.5.27.0
OS Name: Linux
OS Version: 2.6.18-5-686
Architecture: i386
JVM Version: 1.5.0_07-b03
JVM Vendor: Sun Microsystems Inc.
Server version: Apache/2.2.3
Server built: Sep 6 2008 09:52:20
OS is debian etch, kernel is 2.6.18-5-686 GNU/Linux
Would be great if anyone could shed some light...
TIA
Gregor
--
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring mod_jk
Posted by Rainer Jung <ra...@kippdata.de>.
On 18.05.2009 21:51, Gregor Schneider wrote:
> Hi Rainer,
>
> On Mon, May 18, 2009 at 9:35 PM, Rainer Jung <ra...@kippdata.de> wrote:
>> The error means: you told mod_jk to use it, but you forgot to define it.
>>
>>> All vhost-definitions within Apache are alike when it comes to the
>>> jk-specs, thus I'm just posting a sample vhost-definition:
>>>
>>> <VirtualHost *:443>
>>> [ ...]
>> Lots of mounts telling jk to use a worker named "worker" (the last token
>> in the line)
>>
>>> JkMount /SingleSignOnCLUE/* worker
>>> JkMount /LoginData/* worker
>
> Oh my.... I'll have an appointment with an eye-specialist soon, promised...
No probs, I recently had one ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring mod_jk
Posted by Gregor Schneider <rc...@googlemail.com>.
Hi Rainer,
On Mon, May 18, 2009 at 9:35 PM, Rainer Jung <ra...@kippdata.de> wrote:
>
> The error means: you told mod_jk to use it, but you forgot to define it.
>
>> All vhost-definitions within Apache are alike when it comes to the
>> jk-specs, thus I'm just posting a sample vhost-definition:
>>
>> <VirtualHost *:443>
>> [ ...]
>
> Lots of mounts telling jk to use a worker named "worker" (the last token
> in the line)
>
>> JkMount /SingleSignOnCLUE/* worker
>> JkMount /LoginData/* worker
Oh my.... I'll have an appointment with an eye-specialist soon, promised...
You /definately/ shed some light here...
Thanks!
Gregor
--
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring mod_jk
Posted by Rainer Jung <ra...@kippdata.de>.
Hi Gregor,
On 18.05.2009 20:07, Gregor Schneider wrote:
> Hi guys,
>
> I'm about to update an old Tomcat-instance (5.5.quite_old) to the
> latest 5.5, also I'm about to update an outdated mod_jk to the latest
> version.
>
> The old config of mod_jk had quite some depricated directions
> included, so I changed them (opefully) according to the doc I found
> here:http://tomcat.apache.org/connectors-doc/reference/workers.html
>
> However, when I check the logs from mod_jk, I always get the following
> error-messages (multiple times, I guess it's one for every virtual
> host in Apache HTTPD):
>
> [2009-05-18 19:34:44][18754:3078399680] [error]
> uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker
> with name 'worker' in uri map post proces
> sing.
>
> However, I do not see where I defined a worker with the name "worker".
The error means: you told mod_jk to use it, but you forgot to define it.
> All vhost-definitions within Apache are alike when it comes to the
> jk-specs, thus I'm just posting a sample vhost-definition:
>
> <VirtualHost *:443>
> [ ...]
Lots of mounts telling jk to use a worker named "worker" (the last token
in the line)
> JkMount /SingleSignOnCLUE/* worker
> JkMount /LoginData/* worker
> JkMount /j_security_check worker
> JkMount /IndexCLUE/* worker
> JkMount /BMIWizardCLUE/* worker
> JkMount /RRWizardCLUE/* worker
> JkMount /DiabetesCLUE/* worker
> JkMount /HyperlipCLUE/* worker
> JkMount /ForeignTravelCLUE/* worker
> JkMount /MartialArtsCLUE/* worker
> #
> JkRequestLogFormat "%b %m %q %s %T"
>
> [ ...]
> </VirtualHost>
>
> My jk.conf:
>
> JkWorkersFile "/etc/apache2/workers.properties"
> JkLogFile "|/usr/bin/cronolog -S/var/log/apache2/mod_jk.log
> /var/log/apache2/%Y/%m/mod_jk-%d.log"
> JkLogLevel info
> JkLogStampFormat "[%F %T]"
>
>
> And here come my workers.properties:
No worker "worker" here, only worker "wrkr". Either use "wrkr" in
JkMount or "worker.worker" here.
> # workers.properties - ajp13
> #
> # List workers
> worker.list=wrkr
> # Define wrkr
> worker.wrkr.port=8009
> worker.wrkr.host=127.0.0.1
> worker.wrkr.type=ajp13
> worker.wrkr.connection_pool_size=30
Don't use the pool size for Apache. We choose it automatically.
> worker.wrkr.connection_pool_timeout=60
> worker.wrkr.socket_timeout=60
That's more or less the only of the timeouts I don't really like. Oh
well ...
Look at the timeouts docs page, especially the cping/cpong is useful.
> worker.wrkr.lbfactor=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=wrkr
>
> Versions I'm using:
>
> Using CATALINA_BASE: /home/tomcat/www
> Using CATALINA_HOME: /home/tomcat/www
> Using CATALINA_TMPDIR: /home/tomcat/www/temp
> Using JRE_HOME: /opt/jdk1.5
> Server version: Apache Tomcat/5.5.27
> Server built: Aug 28 2008 10:08:26
> Server number: 5.5.27.0
> OS Name: Linux
> OS Version: 2.6.18-5-686
> Architecture: i386
> JVM Version: 1.5.0_07-b03
> JVM Vendor: Sun Microsystems Inc.
>
> Server version: Apache/2.2.3
> Server built: Sep 6 2008 09:52:20
>
> OS is debian etch, kernel is 2.6.18-5-686 GNU/Linux
>
> Would be great if anyone could shed some light...
>
> TIA
>
> Gregor
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring mod_jk
Posted by André Warnier <aw...@ice-sa.com>.
Gregor,
Gregor Schneider wrote:
> Hi guys,
>
> I'm about to update an old Tomcat-instance (5.5.quite_old) to the
> latest 5.5, also I'm about to update an outdated mod_jk to the latest
> version.
>
> The old config of mod_jk had quite some depricated directions
> included, so I changed them (opefully) according to the doc I found
> here:http://tomcat.apache.org/connectors-doc/reference/workers.html
>
> However, when I check the logs from mod_jk, I always get the following
> error-messages (multiple times, I guess it's one for every virtual
> host in Apache HTTPD):
Probably more like once for each Apache child/thread that starts.
(A VirtualHost in Apache is more like a "personality", it's not really a
process. Each child can impersonate any VirtualHost at each request.)
>
> [2009-05-18 19:34:44][18754:3078399680] [error]
> uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker
> with name 'worker' in uri map post proces
> sing.
>
> However, I do not see where I defined a worker with the name "worker".
I see it, about 10 lines below this one.
>
> All vhost-definitions within Apache are alike when it comes to the
> jk-specs, thus I'm just posting a sample vhost-definition:
>
> <VirtualHost *:443>
> [ ...]
>
> JkMount /SingleSignOnCLUE/* worker <--- right here for instance
> JkMount /LoginData/* worker <--- and here
> JkMount /j_security_check worker <--- and so on..
> JkMount /IndexCLUE/* worker
> JkMount /BMIWizardCLUE/* worker
> JkMount /RRWizardCLUE/* worker
> JkMount /DiabetesCLUE/* worker
> JkMount /HyperlipCLUE/* worker
> JkMount /ForeignTravelCLUE/* worker
> JkMount /MartialArtsCLUE/* worker
> #
> JkRequestLogFormat "%b %m %q %s %T"
>
> [ ...]
> </VirtualHost>
>
> My jk.conf:
>
> JkWorkersFile "/etc/apache2/workers.properties"
> JkLogFile "|/usr/bin/cronolog -S/var/log/apache2/mod_jk.log
> /var/log/apache2/%Y/%m/mod_jk-%d.log"
> JkLogLevel info
> JkLogStampFormat "[%F %T]"
>
>
> And here come my workers.properties:
>
> # workers.properties - ajp13
> #
> # List workers
> worker.list=wrkr <-- that's the mismatch with above
> # Define wrkr
> worker.wrkr.port=8009
> worker.wrkr.host=127.0.0.1
> worker.wrkr.type=ajp13
> worker.wrkr.connection_pool_size=30
> worker.wrkr.connection_pool_timeout=60
> worker.wrkr.socket_timeout=60
> worker.wrkr.lbfactor=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=wrkr
>
So either you replace "worker" by "wrkr" in your JkMount's, or
vice-versa replace "wrkr" by "worker" in workers.properties.
> Versions I'm using:
>
> Using CATALINA_BASE: /home/tomcat/www
> Using CATALINA_HOME: /home/tomcat/www
> Using CATALINA_TMPDIR: /home/tomcat/www/temp
> Using JRE_HOME: /opt/jdk1.5
> Server version: Apache Tomcat/5.5.27
> Server built: Aug 28 2008 10:08:26
> Server number: 5.5.27.0
> OS Name: Linux
> OS Version: 2.6.18-5-686
> Architecture: i386
> JVM Version: 1.5.0_07-b03
> JVM Vendor: Sun Microsystems Inc.
>
> Server version: Apache/2.2.3
> Server built: Sep 6 2008 09:52:20
>
> OS is debian etch, kernel is 2.6.18-5-686 GNU/Linux
>
> Would be great if anyone could shed some light...
>
> TIA
>
> Gregor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org