• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connecting Apache/Tomcat with mod_jk

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic