File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Problem in Apache + Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem in Apache + Tomcat" Watch "Problem in Apache + Tomcat" New topic

Problem in Apache + Tomcat


Joined: Nov 12, 2001
Posts: 18
I am trying to configure Apache with tomcat. I have put the mod_jk.dll in the modules directory of apache. i have added the following piece of code in apaches httpd.conf.
I have also mentioned where my document root is and the directory
*********httpd.conf *************
<IfModule !mod_jk.c>
LoadModule jk_module "D:/Program Files/Apache Group/Apache2/modules/mod_jk.dll"
JkWorkersFile "D:/Program Files/Apache Tomcat 4.0/conf/jk/"
JkLogFile "D:/Program Files/Apache Tomcat 4.0/logs/jk_log.txt"
JkLogLevel debug
AddModule mod_jk.c
JKMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /examples/* ajp13
JkMount /manager/* ajp13
JkMount /tomcat-docs/* ajp13
JkMount /webdav/* ajp13
JkMount /test/* ajp13
i have added the following line of code in server.xml file of tomcat
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk= "D:/Program Files/Apache Group/Apache2/modules" />
<Context path="/test" docBase="test" debug="0"
eloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_test_log." suffix=".txt"
When i start the tomcat it create the folders jk and auto, create the mod_jk.conf in auto directory.
now when i start the apache it says Cannot load the mod_jk.dll (not found)
Pls help me here
my apache doesnt get started
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The user name that you have chosen is not in keeping with the Official Javaranch Naming Policy. Please choose a name that complies.
I agree. Here's the link:
subject: Problem in Apache + Tomcat
It's not a secret anymore!