You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ma...@aol.com on 2002/09/15 08:25:45 UTC

mod_jk.dll loading for tomcat-apache connection

Hey there;
      Apache 1.3.26  and tomcat 4.0.1 run fine independently. I set up the 
mod_jk file in the modules directory of apache....added:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"      
modJk="c:/Apachegroup/Apache/modules/mod_jk.dll"  jkDebug="info"
workersConfig="c:/Apachegroup/Apache/conf/jk/workers.properties"
 jkLog="c:/Apachegroup/Apache/logs/mod_jk.log" /> 


<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"   
append="true" />

________
that produced a jk_mod config file of

<IfModule !mod_jk.c>
  LoadModule jk_module c:/Apachegroup/Apache/modules/mod_jk.dll
</IfModule>

JkWorkersFile "c:/jakarta-tomcat-4.0.1/conf/jk/workers.properties"
JkLogFile "c:/jakarta-tomcat-4.0.1/logs/mod_jk.log"

JkLogLevel info



<VirtualHost localhost>
    ServerName localhost

    JkMount /examples ajp13
    JkMount /examples/* ajp13

    JkMount /jk ajp13
    JkMount /jk/* ajp13

    JkMount /webdav ajp13
    JkMount /webdav/* ajp13

    JkMount /tomcat-docs ajp13
    JkMount /tomcat-docs/* ajp13

    JkMount /manager ajp13
    JkMount /manager/* ajp13
</VirtualHost>

and set up a workers.properties in the conf/jk file

workers.tomcat_home=c:/jakarta-tomcat-4.0.1
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)

jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

when run apache with include file: Include 
"c:/jakarta-tomcat-4.0.1/conf/auto/mod_jk.conf"

getting the error message

Syntax error on line 4 of c:/jakarta-tomcat-4.0.1/conf/auto/mod_jk.conf:
Cannot load c:/apachegroup/apache/modules/mod_jk.dll into server: (126) The 
spe
ified module could not be found:

any ideas

thanx Mac
 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mod_jk.dll loading for tomcat-apache connection

Posted by Jacob Kjome <ho...@visi.com>.
Just make a copy of the autogenerated mod_jk.conf and replace the 
LoadModule line below with this one:

LoadModule jk_module modules/mod_jk.dll


I'm not clear how to tell the Listener to write this relative path, so that 
is what I do.  Anyway, I usually have apps that I dynamically install so I 
set up mappings that make Apache forward all requests to those apps to 
Tomcat making things easier to test.  Essentially, I just use the 
autogenerated mod_jk.conf as a template which I add to and remove 
from.  Using a template makes it easier to get started rather than writing 
the whole thing out from scratch. I also gives you the proper syntax so 
that you can apply it to other context mappings that you might add to it.

Jake

At 02:25 AM 9/15/2002 -0400, you wrote:
>Hey there;
>       Apache 1.3.26  and tomcat 4.0.1 run fine independently. I set up the
>mod_jk file in the modules directory of apache....added:
><Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>modJk="c:/Apachegroup/Apache/modules/mod_jk.dll"  jkDebug="info"
>workersConfig="c:/Apachegroup/Apache/conf/jk/workers.properties"
>  jkLog="c:/Apachegroup/Apache/logs/mod_jk.log" />
>
>
><Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>append="true" />
>
>________
>that produced a jk_mod config file of
>
><IfModule !mod_jk.c>
>   LoadModule jk_module c:/Apachegroup/Apache/modules/mod_jk.dll
></IfModule>
>
>JkWorkersFile "c:/jakarta-tomcat-4.0.1/conf/jk/workers.properties"
>JkLogFile "c:/jakarta-tomcat-4.0.1/logs/mod_jk.log"
>
>JkLogLevel info
>
>
>
><VirtualHost localhost>
>     ServerName localhost
>
>     JkMount /examples ajp13
>     JkMount /examples/* ajp13
>
>     JkMount /jk ajp13
>     JkMount /jk/* ajp13
>
>     JkMount /webdav ajp13
>     JkMount /webdav/* ajp13
>
>     JkMount /tomcat-docs ajp13
>     JkMount /tomcat-docs/* ajp13
>
>     JkMount /manager ajp13
>     JkMount /manager/* ajp13
></VirtualHost>
>
>and set up a workers.properties in the conf/jk file
>
>workers.tomcat_home=c:/jakarta-tomcat-4.0.1
>workers.java_home=$(JAVA_HOME)
>ps=\
>worker.list=ajp13, ajp14
>worker.ajp13.port=8009
>worker.ajp13.host=localhost
>worker.ajp13.type=ajp13
>worker.ajp13.lbfactor=1
>worker.ajp14.port=8010
>worker.ajp14.host=localhost
>worker.ajp14.type=ajp14
>worker.ajp14.secretkey=secret
>worker.ajp14.credentials=myveryrandomentropy
>worker.ajp14.lbfactor=1
>worker.loadbalancer.type=lb
>worker.loadbalancer.balanced_workers=ajp13
>worker.inprocess.type=jni
>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
>worker.inprocess.cmd_line=start
>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)
>
>jvm.dll
>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
>
>when run apache with include file: Include
>"c:/jakarta-tomcat-4.0.1/conf/auto/mod_jk.conf"
>
>getting the error message
>
>Syntax error on line 4 of c:/jakarta-tomcat-4.0.1/conf/auto/mod_jk.conf:
>Cannot load c:/apachegroup/apache/modules/mod_jk.dll into server: (126) The
>spe
>ified module could not be found:
>
>any ideas
>
>thanx Mac
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>