You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Muffett <ma...@muffett.net> on 2001/09/06 14:01:12 UTC

Tomcat 3.3b2 and mod_jk

I'm trying to get Apache to work with Tomcat 3.3b2.

Apache is working and Tomcat works on its own (so a request through 8080
always works).  My problem is that jsp pages requested through port 80
always come straight from Apache (so the jsp code is not processed) - so a
request for http://sota:8080/index0.jsp is fine, but http://sota/index0.jsp
is returned without the jsp code processed.

My mod_jk.conf is slightly modified from the auto (maybe I shouldn't have
done this, but Apache wouldn't serve the files without putting in the
Document Root):


<IfModule !mod_jk.c>
  LoadModule jk_module /usr/lib/apache/mod_jk.so
</IfModule>

JkWorkersFile "/opt/jakarta-tomcat-3.3-b2/conf/jk/workers.properties"
JkLogFile "/opt/jakarta-tomcat-3.3-b2/logs/mod_jk.log"

JkLogLevel debug


JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

###
# conf for Sota
###

JkMount /Sota ajp13
JkMount /Sota/* ajp13

Alias /Sota "/opt/jakarta-tomcat-3.3-b2/webapps/Sota"
<Directory "/opt/jakarta-tomcat-3.3-b2/webapps/Sota">
    Options FollowSymLinks
</Directory>

<VirtualHost sota>
    ServerName sota
    DocumentRoot /opt/jakarta-tomcat-3.3-b2/webapps/Sota
    CustomLog /var/log/httpd/access/sota combined
    ErrorLog /var/log/httpd/error/sota
    DirectoryIndex index.jsp index.htm index.html
</VirtualHost>

<VirtualHost sota.silly.domain.net>
    ServerName sota.silly.domain.net
    DocumentRoot /opt/jakarta-tomcat-3.3-b2/webapps/Sota
    CustomLog /var/log/httpd/access/sota combined
    ErrorLog /var/log/httpd/error/sota
    DirectoryIndex index.jsp index.htm index.html
</VirtualHost>



The (I think) relevant part of the mod_jk.log is:

[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (285)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /examples=ajp13 was
added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was
added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (285)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /admin=ajp13 was added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp13 was added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (285)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /Sota=ajp13 was added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /Sota/=ajp13 was added
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (296)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 6 rules
[Thu Sep 06 11:08:11 2001]  [jk_uri_worker_map.c (317)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (82)]: Into wc_open
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (207)]: Into build_worker_map,
creating 2 workers
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (213)]: build_worker_map, creating
worker ajp12
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (138)]: Into wc_create_worker
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (152)]: wc_create_worker, about to
create instance ajp12 of ajp12
[Thu Sep 06 11:08:11 2001]  [jk_ajp12_worker.c (264)]: Into
ajp12_worker_factory
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (161)]: wc_create_worker, about to
validate and init ajp12
[Thu Sep 06 11:08:11 2001]  [jk_ajp12_worker.c (182)]: Into
jk_worker_t::validate
[Thu Sep 06 11:08:11 2001]  [jk_ajp12_worker.c (194)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (177)]: wc_create_worker, done
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (223)]: build_worker_map, removing
old ajp12 worker
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (213)]: build_worker_map, creating
worker ajp13
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (138)]: Into wc_create_worker
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (152)]: wc_create_worker, about to
create instance ajp13 of ajp13
[Thu Sep 06 11:08:11 2001]  [jk_ajp13_worker.c (911)]: Into
ajp13_worker_factory
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (161)]: wc_create_worker, about to
validate and init ajp13
[Thu Sep 06 11:08:11 2001]  [jk_ajp13_worker.c (432)]: Into
jk_worker_t::validate
[Thu Sep 06 11:08:11 2001]  [jk_ajp13_worker.c (445)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Thu Sep 06 11:08:11 2001]  [jk_ajp13_worker.c (471)]: Into
jk_worker_t::init
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (177)]: wc_create_worker, done
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (223)]: build_worker_map, removing
old ajp13 worker
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (235)]: build_worker_map, done
[Thu Sep 06 11:08:11 2001]  [jk_worker.c (102)]: wc_open, done
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (343)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (360)]: Attempting to map
URI '/index0.jsp'
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (445)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (343)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (360)]: Attempting to map
URI '/sota.css'
[Thu Sep 06 11:08:58 2001]  [jk_uri_worker_map.c (445)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match



Any help would be very much appreciated.

Thanks

Mark Muffett