Gunter - there is a solution,
I finally got my servers working together. But not with the "include" 
thing. Make sure that you use the right mod_jk that has been compiled 
(if you did it not on your own) for your Version of Apache!
I then made some changes to the httpd.conf and server.xml. Here is the 
code I had to add (you have to change the paths):

1. server.xml
somwhere after  <Server port="8005" ...>:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"  modJk= 
"D:\Programme\Server\Apache\modules" />

after <Service name="Tomcat-Standalone">:
  <!-- Define an AJP 1.3 Connector on port 8009 -->
     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" 
port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" 
debug="0"/>

2. httpd.conf
after the LoadModules Section:
#--------------------------------------------------------------------#
       <IfModule !mod_jk.c>
         LoadModule jk_module modules/mod_jk.dll
       </IfModule>
#--------------------------------------------------------------------#

at the end of the file:
#-------------------------------Load 
mod_jk-----------------------------------------#
<IfModule !mod_jk.c>
   LoadModule jk_module 
"D:/Programme/Server/OpenSA/Apache/modules/mod_jk.dll"
</IfModule>

JkWorkersFile 
"D:/Programme/Server/jakarta-tomcat-4.0.3/conf/jk/workers.properties"
JkLogFile "D:/Programme/Server/jakarta-tomcat-4.0.3/logs/jk_log.txt"

JkLogLevel debug

JKMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /examples/* ajp13
JkMount /manager/* ajp13
JkMount /tomcat-docs/* ajp13
JkMount /webdav/* ajp13
JkMount /login/* ajp13
#-----------------------------------------------------------------------------------#

3. workers.properties
Then you have to create a folder named "jk" in the tomcat/conf folder. 
Therein you have to place a file named "workers.properties" including 
the following lines:

# Setup for Windows system
#
workers.catalina_home="D:\Programme\Server\jakarta-tomcat-4.0.3"
workers.java_home="D:\Programme\Java\j2sdk1.4.0_01"

# Linux uses fwd slashes
#ps=/

# Windows uses back slashes
ps=\

worker.list= ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

That should work. It does on my system (I was forced to set that whole 
thing up on a NT4.0 box -aargh!).

Tell me if this works and good luck,

Nick

-------------------------------------------------------------------------------
Gunter D'Hondt wrote:
> I've tried it all but still I'm getting this error.
> Hasn't anybody else got this message and found a solution to it? I've tried
> installed mod_webapp first but that gave me the same error so now I'm trying
> with mod_jk but also with no luck..... how can I connect my apache with
> tomcat then? I'm out of possibilities...
> 
> Help me out pls!
> 
> Gunter
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jacob Kjome
> Sent: donderdag 11 juli 2002 15:05
> To: Tomcat Users List
> Subject: RE: Cannot load mod_jk.dll into server!
> 
> 
> Hi Gunter,
> 
> Try the following which I know works (change the paths to suit your
> setup)....
> 
> put the following in Apache's httpd.conf:
> 
> Include "C:/Program Files/Apache
> Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf"
> 
> 
> put the following in Tomcat's mod_jk.conf:
> 
> <IfModule !mod_jk.c>
>    LoadModule jk_module modules/mod_jk.dll
> </IfModule>
> 
> JkWorkersFile
> "c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties"
> JkLogFile "c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log"
> 
> JkLogLevel info
> 
> <VirtualHost localhost>
>      ServerName localhost
> 
>      JkMount /webdav ajp13
>      JkMount /webdav/* ajp13
> 
>      JkMount /tomcat-docs ajp13
>      JkMount /tomcat-docs/* ajp13
> 
>      JkMount /examples ajp13
>      JkMount /examples/* ajp13
> 
>      JkMount /manager ajp13
>      JkMount /manager/* ajp13
> </VirtualHost>
> 
> 
> Put the following in your workers.properties:
> 
> workers.tomcat_home=$(CATALINA_HOME)
> 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.ajp13.cachesize=8
> worker.ajp14.port=8011
> worker.ajp14.host=localhost
> worker.ajp14.type=ajp14
> worker.ajp14.secretkey=mysupersecretkey
> worker.ajp14.credentials=mysuperveryrandomentropy
> worker.ajp14.lbfactor=1
> worker.ajp14.cachesize=8
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp13
> worker.inprocess.type=jni
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
> talina.jar
> worker.inprocess.cmd_line=start
> worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(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
> 
> 
> There you go.  If that doesn't work, something else is wrong.
> 
> Jake
> 
> 
> 
> At 10:28 AM 7/11/2002 +0200, you wrote:
> 
>>I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll
> 
> but
> 
>>with no luck. But when I check the file properties of the dll then I can
> 
> see
> 
>>that "Last accessed" is always set to the datetime when I last ran "apache
>>-t" so I think this should mean that apache DOES find the dll but cannot
>>load it properly...
>>
>>Can anybody help me out?
>>
>>Gunter
>>
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]On
>>Behalf Of Ralph Einfeldt
>>Sent: donderdag 11 juli 2002 10:08
>>To: Tomcat Users List
>>Subject: AW: Cannot load mod_jk.dll into server!
>>
>>
>>Obviously your mod_jk.conf is found.
>>
>>One guess: Make shure that c:\Apache\modules\mod_jk.dll
>>is exactly equal to the real path (including case), normally
>>windows isn't case sensitive but some applications are.
>>(Can't remember if this is a problem for apache, my last
>>install of apache under windows is to long ago)
>>
>>
>>>-----Urspr�ngliche Nachricht-----
>>>Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
>>>Gesendet: Donnerstag, 11. Juli 2002 09:38
>>>An: 'Tomcat Users List'
>>>Betreff: RE: Cannot load mod_jk.dll into server!
>>>
>>>
>>><IfModule !mod_jk.c>
>>>  LoadModule jk_module c:\Apache\modules\mod_jk.dll
>>></IfModule>
>>>
>>>JkWorkersFile "c:\progra~1\apache~1.0\conf\jk\workers.properties"
>>>JkLogFile "c:\progra~1\apache~1.0\logs\mod_jk.log"
>>>
>>>JkLogLevel info
>>>
>>><VirtualHost localhost>
>>>    ServerName localhost
>>>
>>>    JkMount /webdav ajp13
>>>    JkMount /webdav/* ajp13
>>>
>>>    JkMount /tomcat-docs ajp13
>>>    JkMount /tomcat-docs/* ajp13
>>>
>>>    JkMount /examples ajp13
>>>    JkMount /examples/* ajp13
>>>
>>>    JkMount /manager ajp13
>>>    JkMount /manager/* ajp13
>>></VirtualHost>
>>>
>>>
>>>
>>>Gunter
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]]On
>>>Behalf Of Ralph Einfeldt
>>>Sent: donderdag 11 juli 2002 09:33
>>>To: Tomcat Users List
>>>Subject: AW: Cannot load mod_jk.dll into server!
>>>
>>>
>>>Can you show us your LoadModule directive ?
>>>
>>>The log doesn't complain about not finding mod_jk.conf
>>>but mod_jk.dll.
>>>
>>>
>>>>-----Urspr�ngliche Nachricht-----
>>>>Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
>>>>Gesendet: Donnerstag, 11. Juli 2002 09:22
>>>>An: 'Tomcat Users List'
>>>>Betreff: Cannot load mod_jk.dll into server!
>>>>
>>>>C:\Apache\bin>apache -t
>>>>Syntax error on line 4 of C:/Program Files/Apache Tomcat
>>>>4.0/conf/auto/mod_jk.conf:
>>>>Cannot load C:/Apache/modules/mod_jk.dll into server: The
>>>>specified module could not be found.
>>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>--
>>To unsubscribe, e-mail:
> 
> <mailto:[EMAIL PROTECTED]>
> 
>>For additional commands, e-mail:
> 
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to