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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to