Apache won't recognize Jserv Module

Apache won't recognize Jserv Module

Post by root » Thu, 28 Oct 1999 04:00:00



Hi.
    I am running Linux 6.1 and trying to get Apache 1.3.6 to recognize
the Apache Jserv 1.0 module when I do 'httpd -l'.  Apache 1.3.6 came
from a tar file off of apache.org as did Jserve 1.0.  I have JSDK2.0 and
JDK1.1.7 installed.  Apache was built with DSO support using this
script:

#./configure --prefix=/usr/local/apache_1.3.6 \
--enable-rule=SHARED_CORE \
--enable-module=so \
--enable-shared=max
#make
#make install

No errors with anything and it said  '+ enabling generation of Apache
core as DSO'
                                                             '+ using
-ldl for vendor DSO support'

Then I built JServ using this script:

#./configure --prefix=/usr/local/jserv \
--with-apache-install=/usr/local/apache_1.3.6 \
--with-jdk-home=/usr/local/jdk117_v3 \
--with-jsdk=/usr/local/JSDK2.0/lib/jsdk.jar \
--enable-apache-conf
#make
#make install

Again, no errors and this message 'Apache Version: 1.3'
                                                           'Module Type:
dynamic (DSO will be used to link mod_jserv into server dynamically)'

Looks good so far, right?

Then I rebuilt Apache 1.3.6 with this script to enable the jserv module
as DSO and activate it:

#./configure --prefix=/usr/local/apache_1.3.6 \
--enable-rule=SHARED_CORE \
--enable-module=so \
--enable-shared=max \
--add-module=/usr/local/ApacheJServ-1.0/src/c/mod_jserv.c \
--enable-shared=jserv
#make;make install

No errors..message says:
+ on-the-fly added and activated jserv module
(modules/extra/mod_jserv.o)

I checked and the "LoadModule  jserv" line had been added in
/usr/conf/httpd.conf but not in the
/usr/local/apache_1.3.9/conf/httpd.conf   Does this matter? (I did add
it myself in apache_1.3.6 just to see. Didn't work).  Which .conf file
is read on apachectl start?  I thought it was the one in apache_1.3.6

I restarted apachectl as well as stopping and starting it and 'httpd
-l'still did not show mod_jserv.c in its list of compiled in modules.

I am at a loss.  Any info would be helpful.  THANKS!!

Brian Stone

 
 
 

Apache won't recognize Jserv Module

Post by Henry LeRoy Miller, Jr » Fri, 29 Oct 1999 04:00:00



> Hi.
>     I am running Linux 6.1 and trying to get Apache 1.3.6 to recognize
> the Apache Jserv 1.0 module when I do 'httpd -l'.  Apache 1.3.6 came
> from a tar file off of apache.org as did Jserve 1.0.  I have JSDK2.0 and
> JDK1.1.7 installed.  Apache was built with DSO support using this
> script:

I believe you can't have both (DSO for jserv & httpd -l response).  See
my response to your previous post.

Quote:

> #./configure --prefix=/usr/local/apache_1.3.6 \
> --enable-rule=SHARED_CORE \
> --enable-module=so \
> --enable-shared=max
> #make
> #make install

> No errors with anything and it said  '+ enabling generation of Apache
> core as DSO'
>                                                              '+ using
> -ldl for vendor DSO support'

> Then I built JServ using this script:

> #./configure --prefix=/usr/local/jserv \
> --with-apache-install=/usr/local/apache_1.3.6 \
> --with-jdk-home=/usr/local/jdk117_v3 \
> --with-jsdk=/usr/local/JSDK2.0/lib/jsdk.jar \
> --enable-apache-conf
> #make
> #make install

> Again, no errors and this message 'Apache Version: 1.3'
>                                                            'Module Type:
> dynamic (DSO will be used to link mod_jserv into server dynamically)'

> Looks good so far, right?

> Then I rebuilt Apache 1.3.6 with this script to enable the jserv module
> as DSO and activate it:

> #./configure --prefix=/usr/local/apache_1.3.6 \
> --enable-rule=SHARED_CORE \
> --enable-module=so \
> --enable-shared=max \
> --add-module=/usr/local/ApacheJServ-1.0/src/c/mod_jserv.c \
> --enable-shared=jserv
> #make;make install

> No errors..message says:
> + on-the-fly added and activated jserv module
> (modules/extra/mod_jserv.o)

Okay, everything looks pretty good.

Quote:

> I checked and the "LoadModule  jserv" line had been added in
> /usr/conf/httpd.conf but not in the
> /usr/local/apache_1.3.9/conf/httpd.conf   Does this matter? (I did add

It most definitely matters.  Get your PATH straightened away, get rid of
multiple Apache executables & conf files, or be _specific_ in executing
and accessing these files, or I supsect you'll continually have problems.

Quote:> it myself in apache_1.3.6 just to see. Didn't work).  Which .conf file
> is read on apachectl start?  I thought it was the one in apache_1.3.6

only if you run the apachectl script from the correct directory.  cat
the apachectl scripts that are on your machine and look at the
configuration section near the top.  See HTTPD?  It defines which httpd
executable is executed.

Quote:

> I restarted apachectl as well as stopping and starting it and 'httpd
> -l'still did not show mod_jserv.c in its list of compiled in modules.

As expected.  So far the only problem you have that I can see are:

 1 - multiple copies of apache of which to be aware/careful
 2 - possibly missing a line or two in your httpd.conf file

In httpd.conf, either use something like this to include your jserv.conf file

 Include /usr/local/jserv/jserv.conf

or include all the directives themselves in the httpd.conf file.

In either case make sure the LoadModule & AddModule directives are used.
 AddModule was left out in my case.  For me, they look like this at the
top of my jserv.conf file.

 LoadModule jserv_module libexec/mod_jserv.so
 AddModule mod_jserv.c

Are we getting closer?

Henry LeRoy Miller, Jr.


 
 
 

Apache won't recognize Jserv Module

Post by Brian Ston » Fri, 29 Oct 1999 04:00:00


Thank you very much for your info.  I apologize for posting the message
twice, but I thought I lost the first one.

 You were right about checking my path.  I had another apachectl and
http.conf that was messing me up.  Now everything runs where it is
supposed to be.  

But, I have another problem now  :-)        I added the "Include" line
in apache_1.3.6/conf/httpd.conf to include the path to jserv.conf.

Then I added the "AddModule" line in jserv.conf (by the way, mine had
the "Include" line but not the "AddModule" line.  Just like you said
yours did, eventhough the documents say it should add it.  hhmmm.)
anyway, I then ran apachectl start and got this error message:

Syntax error on line 218 of /usr/local/apache_1.3.6/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.6/libexec/mod_jserv.so
into server:  /usr/local/apache_1.3.6/libexec/mod_jserv.so:  undefined
symbol: jserv_error_exit
/usr/local/apache_1.3.6/bin/apachectl:  cannot start

To me this looks like a possible problem with the version of apache
since I found jserv_error_exit in the mod_jserv.c file.
So, I tried loading apache_1.3.9 and doing everything all over again and
got the exact same error.

The docs that I have read show no sign that these versions are
incompatible.  Again here is what I am running.....

RedHat Linux 6.1
Apache 1.3.9
JSDK 2.0
JDK 1.1.7
Apache JServ 1.0

Thanks!!!!

Brian

 
 
 

Apache won't recognize Jserv Module

Post by Brian Ston » Fri, 29 Oct 1999 04:00:00


Thank you very much for your info.  I apologize for posting the message
twice, but I thought I lost the first one.

 You were right about checking my path.  I had another apachectl and
http.conf that was messing me up.  Now everything runs where it is
supposed to be.  

But, I have another problem now  :-)        I added the "Include" line
in apache_1.3.6/conf/httpd.conf to include the path to jserv.conf.

Then I added the "AddModule" line in jserv.conf (by the way, mine had
the "Include" line but not the "AddModule" line.  Just like you said
yours did, eventhough the documents say it should add it.  hhmmm.)
anyway, I then ran apachectl start and got this error message:

Syntax error on line 218 of /usr/local/apache_1.3.6/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.6/libexec/mod_jserv.so
into server:  /usr/local/apache_1.3.6/libexec/mod_jserv.so:  undefined
symbol: jserv_error_exit
/usr/local/apache_1.3.6/bin/apachectl:  cannot start

To me this looks like a possible problem with the version of apache
since I found jserv_error_exit in the mod_jserv.c file.
So, I tried loading apache_1.3.9 and doing everything all over again and
got the exact same error.

The docs that I have read show no sign that these versions are
incompatible.  Again here is what I am running.....

RedHat Linux 6.1
Apache 1.3.9
JSDK 2.0
JDK 1.1.7
Apache JServ 1.0

Thanks!!!!

Brian

 
 
 

Apache won't recognize Jserv Module

Post by Brian Ston » Fri, 29 Oct 1999 04:00:00


Thank you very much for your info.  I apologize for posting the message
twice, but I thought I lost the first one.

 You were right about checking my path.  I had another apachectl and
http.conf that was messing me up.  Now everything runs where it is
supposed to be.  

But, I have another problem now  :-)        I added the "Include" line
in apache_1.3.6/conf/httpd.conf to include the path to jserv.conf.

Then I added the "AddModule" line in jserv.conf (by the way, mine had
the "Include" line but not the "AddModule" line.  Just like you said
yours did, eventhough the documents say it should add it.  hhmmm.)
anyway, I then ran apachectl start and got this error message:

Syntax error on line 218 of /usr/local/apache_1.3.6/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.6/libexec/mod_jserv.so
into server:  /usr/local/apache_1.3.6/libexec/mod_jserv.so:  undefined
symbol: jserv_error_exit
/usr/local/apache_1.3.6/bin/apachectl:  cannot start

To me this looks like a possible problem with the version of apache
since I found jserv_error_exit in the mod_jserv.c file.
So, I tried loading apache_1.3.9 and doing everything all over again and
got the exact same error.

The docs that I have read show no sign that these versions are
incompatible.  Again here is what I am running.....

RedHat Linux 6.1
Apache 1.3.9
JSDK 2.0
JDK 1.1.7
Apache JServ 1.0

Thanks!!!!

Brian

 
 
 

1. Apache with Jserv won't start...

... It stops starting with the message:

You must specify a secret key, or disable this featunre.
To disable, add "ApJServSecretKey DISABLED" to your Apache configuration
file.
....

I've checked already the wrapper path settings and looked in apachectl
to find out, if
I change the actual configuration files.

This message seems to have many origins. Can anybody tell me, where they
can be
also?

Thanks, Chris

[SYSTEM: Apache 1.3.6, Apache JServ 1.0, jdk 1.1.8]

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Linux META-FAQ (part 1/1)

3. apache jserv won't start

4. malloc() wasting memory?

5. linux/readhat Apache JServ won't start

6. Reading ancient tapes using Emulex MD21 SCSI board

7. Problems adding Apache JServ module to Apache Web Server as a Dynamic Shared Object

8. mounting mac-filesystems under linux

9. Configuring Apache Jserv to recognise XML as correct context type of text/xml

10. Apache won't restart after adding a DSO module

11. 'Toolkit for Linux' won't recognize CDROM

12. Apache 1.3.6 modules won't install?

13. Unable to compile jserv module on Apache 1.3.1