Do you have the application referenced in your mod_jk.conf file?
-----Original Message-----
From: Ian Caswell [mailto:swimpunk@yahoo.com]
Sent: Wednesday, July 26, 2006 3:04 PM
To: users@tomcat.apache.org
Subject: apache not talking to tomcat w/ mod_jk
I'm an OS guy, so applications are new to me.
Any help is appreciated.
I'm trying to integrate apache and tomcat w/ mod_jk.
Regular html pages show up fine, but jsp pages do not.
I don't think apache is talking to tomcat like it should.
I'm not sure where the problem lies; netstat -an shows tomcat listening
on 8009, but apache isn't connected.
Can anyone help me find my issue? Firewall is disabled, and
/etc/hosts.allow and .deny are empty. My hunch is an incorrect config
file.
Note: my real hostname/domain has been replaced by myhost.mydomain to
provide security and not confuse where i have localhost.localdomain in
the configs.
I've looked at following logs, but not found anything suspicious.
/opt/tomcat/logs/*
/etc/httpd/logs/*
/home/tomcat/myhost.mydomain/broomfield/logs/*
(irrelevant ports removed)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN
tcp 0 0 :::8009 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
Setup:
RHAS 4
apache 2.0.52-22 (redhat rpm)
ibm-java2-i386-sdk-5.0-2.0 (ibm rpm)
tomcat 5.5.17 (built from src)
mod_jk 1.2.15 (built from src)
[root@myhost conf]# cat /opt/tomcat/conf/server.xml
[root@overkill conf]# cat
/etc/httpd/conf.d/mod_jk.conf
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
[root@overkill conf]# cat
/etc/httpd/conf/workers.properties
# workers.properties - ajp13
workers.tomcat_home=/opt/tomcat
workers.java_home=/opt/ibm/java2-i386-50
ps=/
#
# List workers
worker.list=wrkr
#
# Define wrkr
worker.wrkr.port=8009
worker.wrkr.host=127.0.0.1
worker.wrkr.type=ajp13
worker.wrkr.cachesize=10
worker.wrkr.cache_timeout=600
worker.wrkr.socket_timeout=300
[root@myhost conf]# cat /etc/hosts
127.0.0.1 localhost.localdomain
localhost
192.168.1.10 myhost.mydomain myhost
##Relevant entries from /etc/httpd/conf/httpd.conf LoadModule jk_module
modules/mod_jk.so Include conf.d/*.conf NameVirtualHost 192.168.1.10:80
ServerAdmin webmaster@myhost.mydomain
ServerName myhost.mydomain
DocumentRoot
/home/tomcat/webapps/myhost.mydomain/broomfield
ErrorLog
/home/tomcat/webapps/myhost.mydomain/logs/error_log
CustomLog
/home/tomcat/webapps/myhost.mydomain/logs/access_log
common
JkMount /*.jsp wrkr
JkMount /servlet/* wrkr
# Deny direct access to WEB-INF
AllowOverride None
deny from all
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org