I'm continuing to try to get apache, tomcat, and the connector to work so
apache passes jsp page requests to tomcat. It still is not functional, but
still haven't found the culprit of why this isn't working. My configuration
including perhaps tail-tell log file output is detailed below. _any_
suggestions appreciated.
Thx,
/Patrice
Here's the specs/state:
tomcat-4.1.24
Apache/2.0.46
Mod_jk
j2sdk1.4.1_02
#in /usr/local
lrwxrwxrwx 1 root root 12 Jul 7 12:16 apache ->
apache2.0.46
lrwxrwxrwx 1 root root 13 Jul 1 12:09 java ->
j2sdk1.4.1_02
lrwxrwxrwx 1 root root 13 Jul 8 09:53 tomcat ->
tomcat-4.1.24
#in /usr/local/apache/modules
-rw-r--r-- 1 root root 124472 Jul 8 09:58 mod_jk.so
# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 155.41.0.0/16 0.0.0.0/0 tcp dpt:22
flags:0x16/0x02
ACCEPT tcp -- 155.41.0.0/16 0.0.0.0/0 tcp dpt:21
flags:0x16/0x02
ACCEPT tcp -- 155.41.0.0/16 0.0.0.0/0 tcp dpt:13782
flags:0x16/0x02
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
flags:0x16/0x02
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
flags:0x16/0x02
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8009
flags:0x16/0x02
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
flags:0x16/0x02
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
flags:0x16/0x02
ACCEPT tcp -- 155.41.0.0/16 0.0.0.0/0 tcp dpt:2049
flags:0x16/0x02
ACCEPT tcp -- 127.0.0.0/16 0.0.0.0/0 tcp
flags:0x16/0x02
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
flags:0x16/0x02
#in /etc/apache/httpd.conf
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk.conf
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug
#within my virtual hosts in httpd.conf
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
#/usr/local/tomcat/conf/jk/workers.properties
worker.list=ajp13
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
#in /usr/local/tomcat/conf/server.xml added
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache/modules/mod_jk.so" />
within the Server container, and:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false" modJk="/usr/local/apache/modules/mod_jk.so"
workersConfig="/usr/local/tomcat/conf/workers.properties" />
in the Host container.
#/usr/local/tomcat/logs/Catalina.out logs upon start up of tomcat:
Jul 10, 2003 9:47:59 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 10, 2003 9:48:03 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 10, 2003 9:48:03 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 10, 2003 9:48:03 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/102
config=/usr/local/tomcat/conf/jk2.properties
This looks as expected.
if you look /usr/local/apache/logs/mod_jk.log says "done without a match"
when i am clicking on the .js page which then is supposed to load a jsp
page. the GetSampleTracking java activity i mentioned at the end of this
email. Is this a great big glaring hint?
---
##/usr/local/apache/logs/mod_jk.log
Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 10 10:21:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map
URI '/mirage/servlet/GetSampleTracking'
[Thu Jul 10 10:21:37 2003] [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Jul 10 10:21:37 2003] [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 10 10:21:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map
URI '/mirage/servlet/GetSampleTracking'
[Thu Jul 10 10:21:37 2003] [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
The result is even if I go to <virtualhost>:8080 I will get the tomcat
page, and can surf to <virtualhost>:8080/examples
But <virtualhosts>/examples will not give me anything.. isn't the jkmount
option in httpd.conf supposed to link the two together, even though docRoot
for the virtual host does not contain the examples dir? (which is in
/usr/local/tomcat/webapps).
I put the JkMount directive in another of my virtual hosts in httpd.conf,
which _does_ have jsp pages in its document root, and the jsp page would not
load. The way it complains seems like it cannot find the java class, but I
don't know. The result was
http://<virtualhost>/mirage/servlet/GetSampleTracking " page cannot be
found"
-I tried setting up a host container for each of my virtual hosts, but all
that did was show a directory listing of my webserver from all the virtual
hosts.
-I changed instances of localhost to my webserver name, which didn't help.
Any ideas?
/Patrice
Computer System Administrator
Genetics Program - BUMC