----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I'm a rookie; I hope this group can help! I've scoured the FAQ's, read
this group, read every document in the Apache and jserv distributions, and
tried for a two months to install jserv, all without success. Can anybody
help? Otherwise I'm SOL :)
Symptom: After building and installing everything (BSD unix... Mac OSX,
DSO), Apache chokes on the LoadModule line for Jserv. Because Apache will
not launch, I get no log files and no error messages.
About all I have for feedback, other than a history of what I've tried, is
that if I try
root# /usr/local/sbin/apachectl configtest
I get the response:
Syntax error on line 13 of
/Local/Library/WebServer/Configuration/jserv/jserv.conf:
Cannot load /Local/Library/Apache/Modules/mod_jserv.so into server:
(reason unknown)
This, I am painfully aware, is not terribly informative. I get the same
response if I try to start apachectl, but it refuses to start.
Basically, I follow the jserv and Apache install instructions to the
letter. So I Include the jserv.conf file in my httpd.conf file. However, if
I put the same LoadModule line directly in httpd.conf, almost anywhere, I
get the same result.
It's not really a syntax error, of course, but I don't know what it is. If
I comment out the LoadModule line I get "Syntax OK", and Apache launches
and works fine. Except no servlets.
I have rebuilt jserv many times. It builds and installs OK. After getting
the same problem mentioned above with the preinstalled DSO Apache, I
downloaded and rebuilt Apache from source... many times, at this point. The
builds of Apache 1.3.9 and jserv 1.1 seem to go fine. mod_jserv.so gets
built and installed, as does ApacheJerv.jar. Sun's JSDK is fine, and in
fact I can run servletrunner directly and it serves servlets.
The output from the builds is voluminous, of course. It finds java
compilers, c compilers, loaders and linkers... claims the installation is
successful.
The configure file I use for jserv is
#! /bin/sh
./configure \
--with-apxs=/usr/local/sbin/apxs \
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \
--with-JSDK=/usr/local/jsdk/lib/jsdk.jar
The preinstalled build of Apache is DSO, and I need at least one
third-party module, so I build a DSO version. The most recent time I built
Apache itself, I used this configure:
#! /bin/sh
./configure \
--enable-module=most \
--enable-shared=max \
(it defaults to the config.layout for Mac OS X for a prefix). It
successfully compiles and loads about a zillion modules. This build will
also load my other 3rd party module, WebObjects, just by putting in a
LoadModule line. But not jserv.
I am not accustomed to building and installing software under unix, so the
detailed instructions are not detailed enough for me. For example, if I
want to build Apache with jserv compiled in statically, so that it will
work, but everything else as a DSO, how do I do that?
If anybody has either a pointer to more docs, or an idea of how to
proceed, I'll give it a whirl. Help??!!
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]