Do you have the application referenced in your mod_jk.conf file?
Message
From: Ian Caswell [mailto:swimpunk (AT) yahoo (DOT) com]
Sent: Wednesday, July 26, 2006 3:04 PM
To: users (AT) tomcat (DOT) apache.org
Subject: apache not talking to tomcat w/ mod_jk
I'm an S 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/*
/*
(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 <Server port="8005"
shutdown="">
<GlobalNamingResources>
<!-- Used by Manager webapp
<Resource name="UserDatabase" auth="Container"
type=""
description="User database that can be updated and saved"
factory=""
pathname="conf/tomcat-users.xml" /</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8009"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="localhost">
<Realm
className=""
resourceName="UserDatabase" />
<Host name="localhost"
appBase="/home/tomcat/webapps" />
</Engine>
</Service>
</Server>
[root@overkill conf]# cat
/etc/httpd/conf.d/mod_jk.conf
JkWorkersFile "/"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
[root@overkill conf]# cat
/
# workers.properties - ajp13
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
<VirtualHost 192.168.1.10:80>
ServerAdmin webmaster (AT) myhost (DOT) mydomain
ServerName myhost.mydomain
DocumentRoot
/
ErrorLog
/
CustomLog
/
common
JkMount /*.jsp wrkr
JkMount /servlet/* wrkr
# Deny direct access to WEB-INF
<LocationMatch ".*WEB-INF.*">
A None
deny from all
</LocationMatch>
</VirtualHost>
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 (AT) tomcat (DOT) apache.org To unsubscribe,
e-mail: users-unsubscribe (AT) tomcat (DOT) apache.org
For additional commands, e-mail: users-help (AT) tomcat (DOT) apache.org
To start a new topic, e-mail: users (AT) tomcat (DOT) apache.org
To unsubscribe, e-mail: users-unsubscribe (AT) tomcat (DOT) apache.org
For additional commands, e-mail: users-help (AT) tomcat (DOT) apache.org