wood burning stoves
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

Connecting Apache/Tomcat with mod_jk

Barry Gold

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

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Connecting Apache/Tomcat with mod_jk
jQuery in Action, 3rd edition