tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From groupalias v <group....@gmail.com>
Subject Debugging tomcat<->apache(mod_jk) bridge
Date Tue, 01 Dec 2009 14:39:03 GMT
Hi,

I am trying to set up mod_jk to forward requests to the webapp in
tomcat. The webapp itself works when accessed directly. But I get a
400 error in mod_jk when I try to access it (even the index.jsp)
through apache.

I see the error 400 in mod_jk.log but see nothing in tomcat logs. Its
as if the request from mod_jk is not even sent to tomcat. I am sure I
can confirm this with tcpdump. The port 8009 is open when I do an nmap
scan.

Are there tools to debug this? More specifically is there a sanity
checking tool to check errors in my apache configuration and
workers.properties?
Also do I have to do anything special in Tomcat6 to enable JK? It
looks I don't have to. AJP is enabled in server.xml.

Any help is greatly appreciated. Its driving me nuts :)

Here are my configuration files just in case --
I am on suse 11 running apache 2.2 and tomcat6.

httpd.conf
-------------

LoadModule jk_module          modules/mod_jk.so

<IfModule jk_module>
Alias /test/ "/srv/tomcat6/webapps/A"
JkWorkersFile   /usr/local/apache2/conf/workers.properties
JkShmFile       /usr/local/apache2/logs/mod_jk.shm
JkLogFile       /usr/local/apache2/logs/mod_jk.log
JkLogLevel      debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JKMount        /test/ A
JkMount     /test/* A
JkOptions       +ForwardSSLCertChain
</IfModule>

workers.properties file
-----------------------------
#Define 1 real worker using ajp13
worker.list=A
#Set properties for worker1 (ajp13)
worker.A.type=ajp13
worker.A.host=localhost
worker.A.port=8009
worker.A.lbfactor=50
worker.A.cachesize=10
worker.A.cache_timeout=600
worker.A.socket_keepalive=1
worker.A.socket_timeout=300


Thanks,
- Vas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message