Apache mod_jk error

This is a discussion on Apache mod_jk error within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi : I am trying to configure Apache 2.0.x version with mod_jk2. I have tried all the guides to ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-30-2004
Dheeraj Srivastava
 
Posts: n/a
Default Apache mod_jk error

Hi :

I am trying to configure Apache 2.0.x version with mod_jk2. I have
tried all the guides to install it. I have downloade many version of
apache source and build them, even I have downloded the source for
mod_jk2 and build it.

OS : Linux
But some how I am unable to over come this error

Cannot load /apps/iev//apps/iev/apache2035/modules/mod_jk2.so into
server: /apps/iev//apps/iev/apache2035/modules/mod_jk2.so: undefined
symbol: apr_socket_send

Can any one help me in what is missing. Or at least whech version of
apache is compatible with right version of mod_jk

Thanks

Dheeraj
  #2 (permalink)  
Old 09-30-2004
Davide Bianchi
 
Posts: n/a
Default Re: Apache mod_jk error

On 2004-09-30, Dheeraj Srivastava <timaaah@gmail.com> wrote:
> Cannot load /apps/iev//apps/iev/apache2035/modules/mod_jk2.so into


I think you double-defined '/apps/iev/' in your LoadModule directive,
not that this have a real impact but...

> server: /apps/iev//apps/iev/apache2035/modules/mod_jk2.so: undefined
> symbol: apr_socket_send


AFAIK Apache 2 ships with an updated apr library, you need to specify
the correct lib in the LD_LIBRARY_PATH of the user that starts Apache.

> Can any one help me in what is missing. Or at least whech version of
> apache is compatible with right version of mod_jk


I had some trouble in having Apache 2 to play nice with mod_jk2, but
in the end succeded.

Davide

--
It's ten o'clock. Do you know where your source code is?
  #3 (permalink)  
Old 10-01-2004
Dheeraj Srivastava
 
Posts: n/a
Default Re: Apache mod_jk error

Thanks a lot for replying.
I tried your trick and in my profile
I add a line
LD_LIBRARY_PATH=/apps/iev/webserver/lib

But it doesn't bring any joy.

I understand the some apr files needs to be loaded for apache.
But what are they.
If I am not mistaken they are apr.exp,
aprutil.exp loaded at /apps/iev/webserver/lib

Thanks

Dheeraj

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<slrnclo48t.1ur.davideyeahsure@fogg.onlyforfu n.net>...
> On 2004-09-30, Dheeraj Srivastava <timaaah@gmail.com> wrote:
> > Cannot load /apps/iev//apps/iev/apache2035/modules/mod_jk2.so into

>
> I think you double-defined '/apps/iev/' in your LoadModule directive,
> not that this have a real impact but...
>
> > server: /apps/iev//apps/iev/apache2035/modules/mod_jk2.so: undefined
> > symbol: apr_socket_send

>
> AFAIK Apache 2 ships with an updated apr library, you need to specify
> the correct lib in the LD_LIBRARY_PATH of the user that starts Apache.
>
> > Can any one help me in what is missing. Or at least whech version of
> > apache is compatible with right version of mod_jk

>
> I had some trouble in having Apache 2 to play nice with mod_jk2, but
> in the end succeded.
>
> Davide

  #4 (permalink)  
Old 10-01-2004
Davide Bianchi
 
Posts: n/a
Default Re: Apache mod_jk error

On 2004-10-01, Dheeraj Srivastava <timaaah@gmail.com> wrote:
> I tried your trick and in my profile
> I add a line LD_LIBRARY_PATH=/apps/iev/webserver/lib
> But it doesn't bring any joy.


Another option is that you compiled mod_jk2 against the wrong APR
libary, as I said, Apache ship his own. Maybe you should recompile
mod_jk using Apache's apr library instead of the system's libs.

Davide

--
Windows is a pane in the ASCII.
  #5 (permalink)  
Old 10-11-2004
Dheeraj Srivastava
 
Posts: n/a
Default Re: Apache mod_jk error

I am using the following scripts to configure and make

export CPPFLAGS="-I/apps/iev/apache/httpd-2.0.48/include"


../configure --with-apxs2=/apps/iev/apache2048/bin/apxs \
--with-apache2=/apps/iev/apache2048 \
--with-apr=/apps/iev/apache/httpd-2.0.48/srclib/apr \
--with-apr-include=/apps/iev/apache/httpd-2.0.48/srclib/apr/include \
--with-apr-lib=/apps/iev/apache2048/lib \
--with-tomcat41=/apps/iev/jboss-3.2.0RC2_tomcat.4.1.18/tomcat-4.1.x \
--with-java-home=/apps/partnercenter/wasbase/java \
--with-jni \
--enable-module=so \
--with-pcre

And after this ....
make
>

libtool --finish /apps/iev/apache/httpd-2.0.48/modules.

All this mubo jumbo produces the mod_jk2.so files. And after moving to
the mdoules dir of the apache, if I try to run I get the message

httpd: module "../../server/apache2/mod_jk2.c" is not compatible with
this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

To me it looks as if it is making mod_jk2.so for the apache1.x rather
than for apache2.x.

Can you please help me with this.
Thx
dheeraj






--------------------------------------------------------------------------------
Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<slrnclq1cn.1j8.davideyeahsure@fogg.onlyforfu n.net>...
> On 2004-10-01, Dheeraj Srivastava <timaaah@gmail.com> wrote:
> > I tried your trick and in my profile
> > I add a line LD_LIBRARY_PATH=/apps/iev/webserver/lib
> > But it doesn't bring any joy.

>
> Another option is that you compiled mod_jk2 against the wrong APR
> libary, as I said, Apache ship his own. Maybe you should recompile
> mod_jk using Apache's apr library instead of the system's libs.
>
> Davide

  #6 (permalink)  
Old 10-12-2004
Amit Kaushal
 
Posts: n/a
Default Re: Apache mod_jk error

Hi

I export the LD_LIBRARY_PATH as below:
export LD_LIBRARY_PATH=/home2/sh3dsk/amit/TC5/apr-util-9.4/lib/:$LD_LIBRARY_PATH

I have compiled successfully mod_jk2.so for stronghold apache 3 with
apache version 1.3 running on solaris 2.6. It works like a dream.

Let me know if u need anything on this.

best regards
amit kaushal
amit@billdesk.com



timaaah@gmail.com (Dheeraj Srivastava) wrote in message news:<6956a810.0410110307.2341c9f5@posting.google. com>...
> I am using the following scripts to configure and make
>
> export CPPFLAGS="-I/apps/iev/apache/httpd-2.0.48/include"
>
>
> ./configure --with-apxs2=/apps/iev/apache2048/bin/apxs \
> --with-apache2=/apps/iev/apache2048 \
> --with-apr=/apps/iev/apache/httpd-2.0.48/srclib/apr \
> --with-apr-include=/apps/iev/apache/httpd-2.0.48/srclib/apr/include \
> --with-apr-lib=/apps/iev/apache2048/lib \
> --with-tomcat41=/apps/iev/jboss-3.2.0RC2_tomcat.4.1.18/tomcat-4.1.x \
> --with-java-home=/apps/partnercenter/wasbase/java \
> --with-jni \
> --enable-module=so \
> --with-pcre
>
> And after this ....
> make
> >

> libtool --finish /apps/iev/apache/httpd-2.0.48/modules.
>
> All this mubo jumbo produces the mod_jk2.so files. And after moving to
> the mdoules dir of the apache, if I try to run I get the message
>
> httpd: module "../../server/apache2/mod_jk2.c" is not compatible with
> this version of Apache (found 20020628, need 20020903).
> Please contact the vendor for the correct version.
>
> To me it looks as if it is making mod_jk2.so for the apache1.x rather
> than for apache2.x.
>
> Can you please help me with this.
> Thx
> dheeraj
>
>
>
>
>
>
> --------------------------------------------------------------------------------
> Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<slrnclq1cn.1j8.davideyeahsure@fogg.onlyforfu n.net>...
> > On 2004-10-01, Dheeraj Srivastava <timaaah@gmail.com> wrote:
> > > I tried your trick and in my profile
> > > I add a line LD_LIBRARY_PATH=/apps/iev/webserver/lib
> > > But it doesn't bring any joy.

> >
> > Another option is that you compiled mod_jk2 against the wrong APR
> > libary, as I said, Apache ship his own. Maybe you should recompile
> > mod_jk using Apache's apr library instead of the system's libs.
> >
> > Davide

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0