Just download the precompiled mod_jk.dll binary from:
http://www.acg-gmbh.de/mod_jk/
Then include the attached "mod_jk.conf" at the *bottom* of your httpd.conf. Note that this was autogenerated from Tomcat 3.3.1 using
-autoconf when starting Tomcat. I just changed some of the values in it to match with my 4.1-dev install. You'll have to add your own stuff, but it will give you a start....or you can just forward everything to Tomcat and make it easy. Your choice.
Then, make sure that the "JkWorkersFile" directive is pointing to the location of the attached "workers.properties". Notice that is is somewhat different than the one you posted, Sachin. Make sure the file paths make sense for your install and all that jazz....
My Apache 2.0.35 is working just great with this setup.
Jake
At 08:53 PM 4/19/2002 -0400, you wrote:
Yea... does any of the developers monitor this list? I think by now there
should be a blaring huge notice saying that mod_jk and Apache 2 just doesn't
work yet.
-----Original Message-----
From: Dole, Sachin Sudhakar
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 7:05 PM
To: '[EMAIL PROTECTED]'
Subject: Apache 2 and Tomcat 4 on Windows!!@#$!
Hi
I get the following error when starting apache 2 with the directive:
LoadModule jk_module modules/mod_jk.dll
The error:
C:\Program Files\Apache Group\Apache2\bin>apache
Syntax error on line 952 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into
server: The specified module could not be found.
I have the dll in place. Now, I have tomcat running, I have the attached
Worker.properties and httpd.conf.
Can someone plllllease help me out. I have searched the mail archives and
though there are a number of people facing the same problem, it seems to me
that my problems are unique!!! <<httpd.conf>> <<workers.properties>>
What could be the problem?
Warm Regards
Sachin Dole
Warm Regards
Sachin Dole
Gateway Village - 800 Bldg,
800 W.Trade St., 3rd Flr South,
NC1-025-03-42,
Charlotte NC.
Phone: 704-683-3603
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
# workers.properties - # # This file provides jk derived plugins with the needed information to # connect to the different tomcat workers. Note that the distributed # version of this file requires modification before it is usable by a # plugin. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to do is un-comment and modify the first three # properties, i.e. workers.tomcat_home, workers.java_home and ps. # Most of the configuration is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp12 worker that connects to localhost:8007 # - An ajp13 worker that connects to localhost:8009 # - A jni inprocess worker. # - A load balancer worker # # However by default the plugins will only use the ajp12 worker. To have # the plugins use other workers you should modify the worker.list property. # #
# OPTIONS ( very important for jni mode )
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=$(CATALINA_HOME)
# workers.tomcat_home=/usr/local/tomcat
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=$(JAVA_HOME)
# workers.java_home=/usr/java
#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
# ps=/
ps=\
#
#------ ADVANCED MODE ------------------------------------------------
#---------------------------------------------------------------------
#
#
#------ DEFAULT worket list ------------------------------------------
#---------------------------------------------------------------------
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector
worker.list=ajp13
# ,ajp14, inprocess
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1
#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize
#------ DEFAULT ajp14 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp14.lbfactor=1
#
# Specify the size of the open connection cache.
#worker.ajp14.cachesize
#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#
#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
#
#------ DEFAULT JNI WORKER DEFINITION---------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni
#
#------ CLASSPATH DEFINITION -----------------------------------------
#---------------------------------------------------------------------
#
#
# Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)catalina.jar
#
# Setting the command line for tomcat.
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=start
# Not needed, but can be customized.
#worker.inprocess.cmd_line=-config
#worker.inprocess.cmd_line=$(workers.tomcat_home)$(ps)conf$(ps)server.xml
#worker.inprocess.cmd_line=-home
#worker.inprocess.cmd_line=$(workers.tomcat_home)
#
# The JVM that we are about to use
#
# This is for Java2
#
# Windows
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll
# IBM JDK1.3
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
# Unix - Sun VM or blackdown
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so
#
# And this is for jdk1.1.X
#
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll
#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
#
# Setting the tomcat.home Java property
#
#worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
#
# Java system properties
#
# worker.inprocess.sysprops=java.compiler=NONE
# worker.inprocess.sysprops=myprop=mypropvalue
#
# Additional path components.
#
# worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
#
########## Auto generated on Thu Mar 28 11:31:25 CST 2002##########
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.dll
</IfModule>
JkWorkersFile "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/workers.properties"
JkLogFile "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/logs/mod_jk.log"
JkLogLevel emerg
#################### /admin ####################
# Static files
Alias /admin "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/admin/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /admin/servlet ajp13
JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13
#################### /tomcat-docs ####################
# Static files
Alias /tomcat-docs "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/tomcat-docs"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/tomcat-docs/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/tomcat-docs/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/tomcat-docs/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /tomcat-docs/servlet ajp13
JkMount /tomcat-docs/servlet/* ajp13
JkMount /tomcat-docs/*.jsp ajp13
#################### /examples ####################
# Static files
Alias /examples "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/examples"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/examples/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /examples/servlet ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/snoop ajp13
JkMount /examples/*.snp ajp13
JkMount /examples/snoop ajp13
JkMount /examples/snoop/* ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/jsp/security/login/j_security_check ajp13
#################### /utasklist ####################
# Static files
Alias /utasklist "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/utasklist"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/utasklist">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/utasklist/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/utasklist/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/utasklist/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/utasklist/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /utasklist/servlet ajp13
JkMount /utasklist/servlet/* ajp13
JkMount /utasklist/*.event ajp13
JkMount /utasklist/*.jsp ajp13
JkMount /utasklist/xlib ajp13
JkMount /utasklist/xlib/* ajp13
JkMount /utasklist/*.param_map ajp13
JkMount /utasklist/CompTest8 ajp13
JkMount /utasklist/*.form_forward ajp13
#################### /Barracuda ####################
# Static files
Alias /Barracuda "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/Barracuda"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/Barracuda">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/Barracuda/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/Barracuda/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/Barracuda/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/Barracuda/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /Barracuda/servlet ajp13
JkMount /Barracuda/servlet/* ajp13
JkMount /Barracuda/*.form_forward ajp13
JkMount /Barracuda/RedirectEx1 ajp13
JkMount /Barracuda/*.param_map ajp13
JkMount /Barracuda/*.jsp ajp13
JkMount /Barracuda/tutorial/HelloWorld1b ajp13
JkMount /Barracuda/tutorial/HelloWorld1a ajp13
JkMount /Barracuda/xlib ajp13
JkMount /Barracuda/xlib/* ajp13
JkMount /Barracuda/tutorial/HelloWorld4 ajp13
JkMount /Barracuda/tutorial/HelloWorld3 ajp13
JkMount /Barracuda/BrowserCheck ajp13
JkMount /Barracuda/CompTest9 ajp13
JkMount /Barracuda/tutorial/HelloWorld2 ajp13
JkMount /Barracuda/CompTest8 ajp13
JkMount /Barracuda/CompTest7 ajp13
JkMount /Barracuda/CompTest6 ajp13
JkMount /Barracuda/CompTest5 ajp13
JkMount /Barracuda/CompTest4 ajp13
JkMount /Barracuda/CompTest3 ajp13
JkMount /Barracuda/CompTest1 ajp13
JkMount /Barracuda/tutorial/HelloWorld2b ajp13
JkMount /Barracuda/tutorial/HelloWorld2a ajp13
JkMount /Barracuda/tutorial/HelloWorld1 ajp13
JkMount /Barracuda/tutorial/HelloWorld1/* ajp13
JkMount /Barracuda/*.event ajp13
#################### /oreilly-exercises ####################
# Static files
Alias /oreilly-exercises "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/oreilly-exercises"
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/oreilly-exercises">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/oreilly-exercises/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/oreilly-exercises/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/oreilly-exercises/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4-nightly-20020404/webapps/oreilly-exercises/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /oreilly-exercises/servlet ajp13
JkMount /oreilly-exercises/servlet/* ajp13
JkMount /oreilly-exercises/*.hello ajp13
JkMount /oreilly-exercises/helloo ajp13
JkMount /oreilly-exercises/hello.html ajp13
JkMount /oreilly-exercises/*.jsp ajp13
JkMount /oreilly-exercises/hello ajp13
JkMount /oreilly-exercises/hello/* ajp13
-- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
