You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ken Bowen <kb...@als.com> on 2008/09/24 01:45:14 UTC

Problem with mod_jk installation

Hi all,

I'm trying to setup a new virtual machine running CentOS 5 Linux over  
VMWare.
Apache Httpd 2.2.3 was already installed and running.
I've installed Java JDK 1.5.0_16 and Tomcat 5.5.27, which is running  
fine.
I downloaded mod_jk-1.2.26-httpd-2.2.6.so and placed it with all the  
other httpd modules.
When I try to restart apache httpd, I get the following error message:

Cannot load /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6 into server:
/etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6: undefined symbol:  
ap_get_server_description [FAILED]

When that happened, since the installed Httpd version was 2.2.3, I  
attempted to use the next earliest
version of mod_jk,   the version mod_jk-1.2.26-httpd-2.0.61.  But when  
Httpd tries to load that, it
says that it is garbled.

What am I missing here??

Thanks in advance,
Ken Bowen

Re: Problem with mod_jk installation

Posted by Steve Ochani <oc...@ncc.edu>.
Send reply to:	Tomcat Users List <us...@tomcat.apache.org>
From:	Ken Bowen <kb...@als.com>
To:	users@tomcat.apache.org
Subject:	Problem with mod_jk installation
Date sent:	Tue, 23 Sep 2008 19:45:14 -0400

> Hi all,
> 
> I'm trying to setup a new virtual machine running CentOS 5 Linux over 
> VMWare. Apache Httpd 2.2.3 was already installed and running. I've
> installed Java JDK 1.5.0_16 and Tomcat 5.5.27, which is running  fine.
> I downloaded mod_jk-1.2.26-httpd-2.2.6.so and placed it with all the 
> other httpd modules. When I try to restart apache httpd, I get the
> following error message:
> 
> Cannot load /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6 into server:
> /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6: undefined symbol: 
> ap_get_server_description [FAILED]
> 
> When that happened, since the installed Httpd version was 2.2.3, I 
> attempted to use the next earliest version of mod_jk,   the version
> mod_jk-1.2.26-httpd-2.0.61.  But when  Httpd tries to load that, it
> says that it is garbled.
> 
> What am I missing here??
> 

Download and build it yourself.

You'll need the httpd-devel.i386 package installed first.

after downloading and uncompressing it's as simple as

cd tomcat-connectors-1.2.26-src/native
./configure --with-apxs=/usr/sbin/apxs
make
make install


then add the line

LoadModule jk_module modules/mod_jk.so

in httpd.conf


and configure mod_jk.



-Steve O.




> Thanks in advance,
> Ken Bowen



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with mod_jk installation

Posted by samlin <sa...@utvnet.com>.
When followed the same procedure for tomcat 6.0.16 with identitical entries
in required files, i could see Apache forwarding requests to Tomcat. i.e.
http://192.168.1.1:8080/sample-site/jsp/home.jsp AND
http://192.168.1.1/sample-site/jsp/home.jsp displays me the expected site
page.

I followed exactly the same procedure woth Tomcat 5.5.27 but URL without
port 8080 reports page not found.


Rainer Jung-3 wrote:
> 
> On 05.01.2009 13:09, samlin wrote:
>> Hi
>>
>> I am using
>> CentOS release 5.2 (Final)
>> jdk1.5.0_16
>> httpd-2.2.3-11.el5_2.centos.4
>> tomcat-5.5.27
>>
>> I tried compiling mod_jk.so
>> I used tomcat-connectors-1.2.27-src.tar.gz
>> resultant mod_jk.so was copied to /etc/httpd/modules/ directory
>>
>> -----workers.properties
>> worker.list=worker1
>> worker.worker1.type=ajp13
>> worker.worker1.host=server2.utvi.com
>> worker.worker1.port=8009
>> -----mod_jk.conf
>> LoadModule    jk_module  modules/mod_jk.so
> 
> If /etc/httpd is not your ServerRoot, you need to use the full path to 
> the file in LoadModule.
> 
>> JkWorkersFile /etc/httpd/conf/workers.properties
>> JkShmFile     /var/log/httpd/mod_jk.shm
>> JkLogFile     /var/log/httpd/mod_jk.log
>> JkLogLevel    info
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkMount /testapp worker1
>> JkMount /testapp/*.jsp worker1
>> JkMount /testapp/* worker1
> 
> If your request will be served by a VirtualHost, you need to put the 
> JkMount into the VirtualHost.
> 
> You didn't tell us, what does not work (e.g. what is your test case, 
> which behaviour do you exoect and which behaviour do you get instead).
> 
> Regards,
> 
> Rainer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-mod_jk-installation-tp19639347p21367451.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem with mod_jk installation

Posted by Rainer Jung <ra...@kippdata.de>.
On 05.01.2009 13:09, samlin wrote:
> Hi
>
> I am using
> CentOS release 5.2 (Final)
> jdk1.5.0_16
> httpd-2.2.3-11.el5_2.centos.4
> tomcat-5.5.27
>
> I tried compiling mod_jk.so
> I used tomcat-connectors-1.2.27-src.tar.gz
> resultant mod_jk.so was copied to /etc/httpd/modules/ directory
>
> -----workers.properties
> worker.list=worker1
> worker.worker1.type=ajp13
> worker.worker1.host=server2.utvi.com
> worker.worker1.port=8009
> -----mod_jk.conf
> LoadModule    jk_module  modules/mod_jk.so

If /etc/httpd is not your ServerRoot, you need to use the full path to 
the file in LoadModule.

> JkWorkersFile /etc/httpd/conf/workers.properties
> JkShmFile     /var/log/httpd/mod_jk.shm
> JkLogFile     /var/log/httpd/mod_jk.log
> JkLogLevel    info
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkMount /testapp worker1
> JkMount /testapp/*.jsp worker1
> JkMount /testapp/* worker1

If your request will be served by a VirtualHost, you need to put the 
JkMount into the VirtualHost.

You didn't tell us, what does not work (e.g. what is your test case, 
which behaviour do you exoect and which behaviour do you get instead).

Regards,

Rainer

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


Re: Problem with mod_jk installation

Posted by samlin <sa...@utvnet.com>.
Hi

I am using
CentOS release 5.2 (Final)
jdk1.5.0_16
httpd-2.2.3-11.el5_2.centos.4
tomcat-5.5.27

I tried compiling mod_jk.so 
I used tomcat-connectors-1.2.27-src.tar.gz
resultant mod_jk.so was copied to /etc/httpd/modules/ directory

-----workers.properties
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=server2.utvi.com
worker.worker1.port=8009
-----mod_jk.conf
LoadModule    jk_module  modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile     /var/log/httpd/mod_jk.shm
JkLogFile     /var/log/httpd/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /testapp worker1
JkMount /testapp/*.jsp worker1
JkMount /testapp/* worker1

----------------------------------------------------------------------
Same procedure was folowed with Tomcat Version 6.0.16
where I am going wrong...

-- 
View this message in context: http://www.nabble.com/Problem-with-mod_jk-installation-tp19639347p21289943.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Problem with mod_jk installation

Posted by Rainer Jung <ra...@kippdata.de>.
Ken Bowen wrote:
> Hi all,
> 
> I'm trying to setup a new virtual machine running CentOS 5 Linux over 
> VMWare.
> Apache Httpd 2.2.3 was already installed and running.
> I've installed Java JDK 1.5.0_16 and Tomcat 5.5.27, which is running fine.
> I downloaded mod_jk-1.2.26-httpd-2.2.6.so and placed it with all the 
> other httpd modules.
> When I try to restart apache httpd, I get the following error message:
> 
> Cannot load /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6 into server:
> /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6: undefined symbol: 
> ap_get_server_description [FAILED]
> 
> When that happened, since the installed Httpd version was 2.2.3, I 
> attempted to use the next earliest
> version of mod_jk,   the version mod_jk-1.2.26-httpd-2.0.61.  But when 
> Httpd tries to load that, it
> says that it is garbled.
> 
> What am I missing here??

When building mod_jk it detects the latest httpd features and uses them. 
So using our build against 2.2.6 and running with an older 2.2.3 got you 
in trouble.

Since this happens to more users, wwe now added a build flag for the 
future 1.2.27 to make the build backwards comtaible to all 2.2.x. Future 
builds will thus no longer suffer from this problem, but our 1.2.26 
downloads do. So either update your httpd to 2.2.6+ or rebuild mod_jk on 
your target system (which is pretty easy).

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with mod_jk installation

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin,

Martin Gainty wrote:
> this is a known bug in Apache 2.2.4+ distro modules
> https://issues.apache.org/bugzilla/show_bug.cgi?id=43095
> can you work around the error by either rollback to 2.2.0
> or roll forward to 2.4

It is not a bug in Apache when a user deploys an inappropriately-linked
version of a shared library.

Not only that, but this "bug" you referred to is actually not a bug in
Apache httpd, but a bug in their build process that fails to check the
status of an APR compile (which is not relevant, here).

Martin, you can't just google the key words from a mailing list post and
present one of the the resulting links as the answer to someone's
question. It's not fair to the OP to respond with obviously incorrect
information like this. Please stop.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjcEG8ACgkQ9CaO5/Lv0PA0UgCggkVCzE4MvM6VPEJbDBgGTs1q
gWUAoL1aeFfd121I4ATlNo2wMn8wKSJP
=G0gb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with mod_jk installation

Posted by Martin Gainty <mg...@hotmail.com>.
Ken-
this is a known bug in Apache 2.2.4+ distro modules
https://issues.apache.org/bugzilla/show_bug.cgi?id=43095
can you work around the error by either rollback to 2.2.0
or roll forward to 2.4
?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> From: kbowen@als.com
> To: users@tomcat.apache.org
> Subject: Problem with mod_jk installation
> Date: Tue, 23 Sep 2008 19:45:14 -0400
> 
> Hi all,
> 
> I'm trying to setup a new virtual machine running CentOS 5 Linux over  
> VMWare.
> Apache Httpd 2.2.3 was already installed and running.
> I've installed Java JDK 1.5.0_16 and Tomcat 5.5.27, which is running  
> fine.
> I downloaded mod_jk-1.2.26-httpd-2.2.6.so and placed it with all the  
> other httpd modules.
> When I try to restart apache httpd, I get the following error message:
> 
> Cannot load /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6 into server:
> /etc/httpd/modules/mod_jk-1.2.26-httpd-2.2.6: undefined symbol:  
> ap_get_server_description [FAILED]
> 
> When that happened, since the installed Httpd version was 2.2.3, I  
> attempted to use the next earliest
> version of mod_jk,   the version mod_jk-1.2.26-httpd-2.0.61.  But when  
> Httpd tries to load that, it
> says that it is garbled.
> 
> What am I missing here??
> 
> Thanks in advance,
> Ken Bowen

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/