You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Gerdau <mg...@technosis.de> on 2003/04/23 09:08:53 UTC

Where to download mod_jk2.so for Apache 2.0.45 on W2K ?

Hi !

Is there precompiled version of mod_jk2.so for Apache 2.0.45 (on W2K) ?

I only could find mod_jk2-2.0.43.dll under
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/win32/
and there it says this module is for 2.0.43 and only 2.0.43

I've tried it anyway but do get errors upon startup of Apache, namely
Apache complains that he can't find <apachehome>/conf/worker2.properties

Before I try to solve these:
is mod_jk2-2.0.43.dll (renamed to mod_jk2.so) supposed to work with
Apache 2.0.45 ?

And if not, how do I connect Apache 2.0.45 and Tomcat 4.1.24 on W2K ?

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Windows Error: 001 - Windows loaded.  System in danger.
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Can't get mod_jk2 2.0.2 and Apache 2.0.45 to work on W2K (was: Where to download mod_jk2.so for Apache 2.0.45 on W2K ?)

Posted by Michael Gerdau <mg...@technosis.de>.
>> I then created a file <apachehome>/conf/worker2.properties 
>
>Think it shoud be workers2.properties, not worker2.properties.

Great (stupid me ;-) !

That did the trick.

Thanks alot, best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Windows: A problem to a solution that was never needed.
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Can't get mod_jk2 2.0.2 and Apache 2.0.45 to work on W2K (was: Where to download mod_jk2.so for Apache 2.0.45 on W2K ?)

Posted by Mladen Turk <mt...@inet.hr>.

> -----Original Message-----
> From: Michael Gerdau
> 
> I then created a file <apachehome>/conf/worker2.properties 

Think it shoud be workers2.properties, not worker2.properties.

MT.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Can't get mod_jk2 2.0.2 and Apache 2.0.45 to work on W2K (was: Where to download mod_jk2.so for Apache 2.0.45 on W2K ?)

Posted by Michael Gerdau <mg...@technosis.de>.
Hi John !

>According to the Apache website, .45 is "module compatible" with .43.

I hoped/feared as much...

>The error message you posted, in any case, is not a "this is a bad module" 
>error, but a "can't find" descriptive error.  You haven't explained if you 
>have <apachehome>/conf/worker2.properties or not.  Do you?  You have to 
>create it.

Ok, here is the slightly more detailed description of my problem:

I have installed:
 - Apache 2.0.45
 - Tomcat 4.1.24
 - J2SDK 1.4.1_02
 - W2K fp3

Both Apache and Tomcat are installed on the same machine and are
working fine (on port 80 and 8080 respectively). Or so it seems.

I'm now trying to connect them via mod_jk2. To that end I downloaded
the binary version 2.0.2 from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/win32/

I inserted the line
LoadModule jk2_module modules/mod_jk2.so
into my httpd.conf.

I then created a file <apachehome>/conf/worker2.properties with
the following lines:
# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

(according to the example given in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html)

On the Tomcat side I'm using the default server.xml that comes with
the 4.1.24 distribution. There a default Coyote/JK2 AJP 1.3 Connector
on port 8009 is defined as follows:
 <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
            port="8009" minProcessors="5" maxProcessors="75"
            enableLookups="true" redirectPort="8443"
            acceptCount="10" debug="0" connectionTimeout="0"
            useURIValidationHack="false"
            protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> 

A jk2.properties does exists but has only comments:
# The default port is 8009 but you can use another one
# channelSocket.port=8019


Upon startup Apache writes the following lines into error.log:
[Wed Apr 23 08:18:51 2003] [error] config.update(): Can't find config file D:/Apache
Group/Apache2/conf/workers2.properties
[Wed Apr 23 08:18:51 2003] [error] shm.init(): No file
[Wed Apr 23 08:18:51 2003] [notice] Parent: Created child process 1172
[Wed Apr 23 08:18:51 2003] [error] config.update(): Can't find config file D:/Apache
Group/Apache2/conf/workers2.properties
[Wed Apr 23 08:18:51 2003] [error] shm.init(): No file
[Wed Apr 23 08:18:51 2003] [notice] Child 1172: Child process is running
[Wed Apr 23 08:18:51 2003] [error] shm.init(): No file
[Wed Apr 23 08:18:51 2003] [error] mod_jk child init 1 0
[Wed Apr 23 08:18:51 2003] [notice] Child 1172: Acquired the start mutex.
[Wed Apr 23 08:18:51 2003] [notice] Child 1172: Starting 250 worker threads.

What am I doing wrong ?

Any help appreciated, best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 "If you can't make it good, make it LOOK good." - B Gates
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Where to download mod_jk2.so for Apache 2.0.45 on W2K ?

Posted by John Turner <to...@johnturner.com>.
According to the Apache website, .45 is "module compatible" with .43.  
However, there may be some aspect of building the source on Win32 that 
breaks the Apache group's intent...I don't have any experience building 
source on Windows, so I can't say.

The error message you posted, in any case, is not a "this is a bad module" 
error, but a "can't find" descriptive error.  You haven't explained if you 
have <apachehome>/conf/worker2.properties or not.  Do you?  You have to 
create it.

John

On Wed, 23 Apr 2003 09:08:53 +0200, Michael Gerdau <mg...@technosis.de> 
wrote:

> Hi !
>
> Is there precompiled version of mod_jk2.so for Apache 2.0.45 (on W2K) ?
>
> I only could find mod_jk2-2.0.43.dll under
> http://jakarta.apache.org/builds/jakarta-tomcat- 
> connectors/jk2/release/v2.0.2/bin/win32/
> and there it says this module is for 2.0.43 and only 2.0.43
>
> I've tried it anyway but do get errors upon startup of Apache, namely
> Apache complains that he can't find <apachehome>/conf/worker2.properties
>
> Before I try to solve these:
> is mod_jk2-2.0.43.dll (renamed to mod_jk2.so) supposed to work with
> Apache 2.0.45 ?
>
> And if not, how do I connect Apache 2.0.45 and Tomcat 4.1.24 on W2K ?
>
> Best,
> Michael
> --
> Vote against SPAM - see http://www.politik-digital.de/spam/
> Michael Gerdau       email: mgd@technosis.de
> Windows Error: 001 - Windows loaded.  System in danger.
> GPG/PGP-keys available on request or at public keyserver
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org