tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Filchak <sub...@zuka.net>
Subject Re: Re: error with jk_module
Date Thu, 06 May 2010 15:45:12 GMT
I will implement the <IfModule> stuff (thanks also to Andre) but I think 
I finally figured it out. First, it turns out I had another version of 
apache on the server I did not realize. (this server was managed by 
someone else before me and I did not know exactly what was on it). There 
was the 2.0.53 version, which was a yum install. Then there was the 
2.2.3 version, a separate instance of Apache I installed which is 
listening on a different IP. But there was also a third instance of 
2.2.3 installed but was not running. However, the modules in question 
were actually compile for that version, hence the complaining. so I 
stopped the 2.0.53 version and cranked up the 2.2.3 version. Still 
complained a bit so I recompiled a fresh module for that version and 
voila, there she works!

Why don't EVER have to stop learning ;-)

Thanks again to those who took the time to try and answer my questions.

Regards to all.

Dave

On 22/07/64 2:59 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dave,
>
> On 5/5/2010 3:05 PM, Dave Filchak wrote:
>    
>> Actually, the server version for this instance is 2.0.52 and I have the
>> following now in my config:
>>
>> LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
>>
>> and when I test the config I get:
>>
>> API module structure `jk_module' in file
>> /usr/local/apache2/modules/mod_jk.so is garbled - perhaps this is not an
>> Apache module DSO?
>>      
> What happens when you do:
>
> $ file /usr/local/apache2/modules/mod_jk.so
>
> Did you check the md5sum from the mirror you used to download?
>
>    
>> I made sure I downloaded the .so for Apache 2.0.x so I think that is
>> right. I have a tomcat app running so I am wondering, do I have to shut
>> it down before trying to restart the server or testing the config?
>>      
> No, you can (re)start Apache and Tomcat in any order.
>
>    
>> If I comment the LoadModule out, then it starts complaining about the
>> JkWorkersFile and if I comment that, the the JkShmFile ... and on it
>> goes. It is very annoying.
>>      
> Try doing this:
>
> <IfModule mod_jk.c>
>    JkLogFile /var/log/apache2/mod_jk.log
>    JkLogLevel Info
>    JkShmFile /var/log/apache2/jk-runtime-status
>    JkWorkersFile /etc/apache2/jk_workers.properties
> </IfModule>
>
> The "IfModule" will have Apache skip the mod_jk configuration if the
> module isn't loaded.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkvh6nUACgkQ9CaO5/Lv0PDJLwCaAqeaw+0BcvExFTc+LQuetmTf
> qbsAnj/7H3tTjdR4yaynOprElZlxwbdD
> =zVQn
> -----END PGP SIGNATURE-----
>
>    

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message