wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Connecting Apache/Tomcat with mod_jk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connecting Apache/Tomcat with mod_jk" Watch "Connecting Apache/Tomcat with mod_jk" New topic
Author

Connecting Apache/Tomcat with mod_jk

Barry Gold
Greenhorn

Joined: Dec 15, 2005
Posts: 22
I'm sure this has been addressed before, but I'm going crazy trying to connect the Apache Web Server with Tomcat.

Following directions on the Tomcat connector site, I have downloaded mod_jk 1.2, installed it in the modules directory of my Apache server, put the supposedly required statements in httpd.conf, and restarted Apache.

I'm using:
Easy PHP1.8
The lastest Tomcat (as of 1/20/2006)
The lastest mod_jk (as of 1/20/2006)

Here are the relevant lines from my httpd.conf:

LoadModule jk_module modules/mod_jk.so
#AddModule mod_jk.c
JkWorkersFile C:/Tomcat5/conf/workers.properties
JkLogFile ${path}/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp12
JkMount /*.gen ajp12

I commented out the "AddModule" line because it produced a warning that mod_jk was already loaded.

*.gen is our pattern for named servlets.

Any suggestions?
Barry Gold
Greenhorn

Joined: Dec 15, 2005
Posts: 22
Oh, I forgot to mention, after doing the above, when I try to access a jsp on my localhost I see the literal contents of the JSP page. It's as if Apache is ignoring the mod_jk commands.
 
jQuery in Action, 2nd edition
 
subject: Connecting Apache/Tomcat with mod_jk
 
Similar Threads
Apache 2.0.53 + Tomcat 5.5.7 integration on Windows using mod_jk
mod_jk tries to map every request from apache
mod_jk // not clear on server.xml configs
Problem in Apache + Tomcat
Apache SSL Module on Ubuntu