ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Integrating Tomcat with Apache Via the mod_jk Module
Subject:   "did not found a worker" Error...
Date:   2002-09-07 10:49:05
From:   chan
Thanks for the great article on integrating apache tomcat using mod_jk on
O'reillyNet. Tomcat works fine independently on port 8080 and apache
correctly serves plain html files in the tomcat examples directory as well
(i.e. Examples menu page). However, I get a 500 Internal Server Error when
accessing any of the example .jsp and servlet files. Mod_jk.log says "did
not found a worker." any help would be greatly appreciated.


I have apache 1.3.26, jakarta-tomcat-4.0.4, jakarta-tomcat-connectors-4.1.9
installed.



My workers.properties file:


# Setup for Mac OS X
workers.tomcat_home=/usr/local/Tomcat
workers.catalina_home=/usr/local/Tomcat
workers.java_home=/System/Library/Frameworks/JavaVM.framework/Home
ps=/
worker.list=ajp12, ajp13
# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp12.type=ajp13



Server.xml file has the following Ajp13 connector listening on port 8009
(didn't change anything here).


<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>



Virtual host block:


<IfModule mod_jk.c>
JkWorkersFile /usr/local/Tomcat/conf/workers.properties
JkLogFile /usr/local/Tomcat/logs/mod_jk.log
JkLogLevel debug


JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


Alias /tomcat/examples /usr/local/Tomcat/webapps/examples

<Directory "/usr/local/Tomcat/webapps/examples">
Options Indexes FollowSymLinks
</Directory>


JkMount /tomcat/examples/servlet/* ajp13
JkMount /tomcat/examples/*.jsp ajp13

<Location "/tomcat/examples/META-INF/">
AllowOverride None
deny from all
</Location>
</IfModule>



Tail of mod_jk.log:


Into jk_uri_worker_map_t::map_uri_to_worker
Attempting to map URI '/tomcat/examples/jsp/dates/date.jsp'
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp
Into wc_get_worker_for_name ajp13
wc_get_worker_for_name, done did not found a worker


1 to 4 of 4
  1. "did not found a worker" Error...
    2004-04-21 18:48:10  srw [View]

  2. "did not found a worker" Error...
    2003-04-21 17:45:31  anonymous2 [View]

    • "did not found a worker" Error...
      2003-07-23 08:10:10  anonymous2 [View]

  3. "did not found a worker" Error...
    2003-03-02 20:06:31  dberg [View]

  4. "did not found a worker" Error...
    2003-02-05 16:36:56  anonymous2 [View]

    • "did not found a worker" Error...
      2006-01-27 04:30:56  baegsi [View]

1 to 4 of 4