apache 2.0.52 - tomcat 5 issue using mod_jk

G

george.mihailidis

I'm trying to get Apache 2.0.52 to work with Tomcat 5.0.28 using mod_jk
1.2.8. The docs are pretty straigtforward, but I keep getting this
error in the apache error logs:

wc_get_worker_for_name::jk_worker.c (92): did not find a worker worker1

This is what's in my httpd.conf:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile conf/worker.properties
JkLogFile logs/mod_jk.log
JkLogLevel trace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat "%w %V %T"

#JkMount /test/*.jsp worker1
JkMount "c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps/jsp-examples/*.jsp" worker1

JkAutoAlias "c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps"

This is what's in my worker.properties:

worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=locahost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

JSP's work fine through Tomcat directly, but through apache I keep
getting the 500 error. I also have the connector tag in tomcat set to
port 8009.

Any help is greatly appreciated. Thanks.
 
H

huy

Hi George,

I'm trying to get Apache 2.0.52 to work with Tomcat 5.0.28 using mod_jk
1.2.8. The docs are pretty straigtforward, but I keep getting this
error in the apache error logs:

wc_get_worker_for_name::jk_worker.c (92): did not find a worker worker1

This is what's in my httpd.conf:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile conf/worker.properties

Try putting in the full path for the JkWorkersFile. (See below for why I
think it doesn't work).
JkLogFile logs/mod_jk.log
JkLogLevel trace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat "%w %V %T"

#JkMount /test/*.jsp worker1
JkMount "c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps/jsp-examples/*.jsp" worker1

Your JKMount looks wrong because you're pointing it to the actual file
directory when it should be the url path (I think). My one mounts the
actual url path
eg. http://host/application_base_url_path
JkMount /application_base_url_path/*.jsp
JkAutoAlias "c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps"
This is ok though to point file system.
This is what's in my worker.properties:

worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=locahost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

This looks okay except I also set

workers.tomcat_home
works.java_home

just in case.

Hope this helps

Huy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top