File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting Apache/Tomcat with mod_jk

 
Barry Gold
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic