Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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.
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic