tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Garrett" <>
Subject Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000
Date Mon, 02 Dec 2002 18:50:32 GMT
I'm having some problems making Apache call Tomcat for it's servlet calls,
and was hoping someone could help me:

My environment:

1)  Apache HTTPD 2.0.43
2)  Tomcat 4.1
3)  mod_jk.dll has been copied into the C:\Apache\Apache2\modules\ directory
4)  httpd.conf, (in C:\Apache\Apache2\conf,) has these lines appended to it:

# Load mod_jk module
LoadModule jk_module modules/mod_jk.dll

# Declare the module for <IfModule directive>
AddModule mod_jk.c 

# Where to find
JkWorkersFile conf/ 

# Where to put jk logs
JkLogFile logs/mod_jk.log 

# Set the jk log level [debug/error/info]
JkLogLevel info 

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " 

# JkOptions indicate to send SSL KEY SIZE, 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories 

# JkRequestLogFormat set the request format 
JkRequestLogFormat "%w %V %T" 

# Send everything for context /examples to worker named worker1 (ajp13)
JkMount /examples/* worker1

5), (in C:\Apache\Apache2\conf,) contains:

# Define 1 real worker using ajp13

# Set properties for worker1 (ajp13)

THE PROBLEM:  When attempting to run apache, after starting up Tomcat first,
I get the error message:


Syntax error on line 988 of C:/Apache/Apache2/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not 
included in the server configuration

What's wrong here?  Line 988 maps to the "AddModule mod_jk.c" command.  Have
I failed to edit this line properly?  Do I also need to make changes to
Tomcat's .conf files to enable apache to call it as a child process/thread?
What am I missing?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message