----------------------------------------------------------------
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 am trying to install Apache JServ on a Mac OSX server machine. I'm
stuck... the Apache server won't come up if I try to load the mod_jserv.so
with a LoadModule. It loads all other modules just fine (see .conf file at
the end of this posting). Can anybody help? Here's the scoop:
OSX server comes with a DSO version of Apache built and installed... is
Apache 1.3. I downloaded Apache JServ 1.1, and Sun's JSDK 2.0. Perl version
is perl 5.005, patch 02.
( OSX is BSD-flavored unix built on a Mach kernel.)
Launching servletrunner directly from a script or terminal window works
correctly, and responds properly to servlet requests on port 8080.
I downloaded jserv from apache, and with some care it appears to to have
built correctly. I did ./configure, make, and make install, all apparently
successful (with voluminous output, of course. ) The perl version seems to
be up-to-date.
"Make install" built and installed an ApacheJServ.jar and a mod_jserv.so
in the Apache modules directory (locations are nonstandard under OSX).
The docs say to edit httpd.conf (on OSX, it is called apache.conf), adding
an Include which points to the jserv.conf. The jserv.conf has a LoadModule
line
LoadModule jserv_module /System/Library/Apache/Modules/mod_jserv.so
which correctly points to where the .so was installed.
Apache fails on the LoadModule, whether I call it from an Include or put
it directly into httpd.conf. The error message is simply that the server
could not load /System/Library/Apache/Modules/mod_jserv.so (for unknown
reason). No log files get written (the Apache server does not come up, and
neiher does JServ).
The Apache conf file on OSX has many LoadModules, along with a caution
about their order. Nothing in the JServ documentation that I've been able
to find says anything about module load order.
I tried a number of things. I tried putting the LoadModule where other
LoadModules are in the httpd.conf file (and also an AddModule mod_jserv.c),
tried including the jserv.conf contents directly, and anything else I
could think of.
The .conf file that ships with OSX, (a snippet of which, showing existing
LoadModules and commented-out versions of what I tried, is below, says )
# Note: The order is which modules are loaded is important. Don't change
# the order below without expert advice.
I'm out of my depth here...I'm looking for that expert advice! Anybody
know what to do? If I try to launch JServ, the entire Apache server goes
down.
Below is the LoadModule snippet of apache.conf, which is what OSX uses for
httpd.conf:
**********************************
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order is which modules are loaded is important. Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
#LoadModule env_module /System/Library/Apache/Modules/mod_env.so
LoadModule config_log_module /System/Library/Apache/Modules/mod_log_config.so
#LoadModule mime_magic_module /System/Library/Apache/Modules/mod_mime_magic.so
LoadModule mime_module /System/Library/Apache/Modules/mod_mime.so
LoadModule negotiation_module /System/Library/Apache/Modules/mod_negotiation.so
#LoadModule status_module /System/Library/Apache/Modules/mod_status.so
#LoadModule info_module /System/Library/Apache/Modules/mod_info.so
LoadModule includes_module /System/Library/Apache/Modules/mod_include.so
LoadModule autoindex_module /System/Library/Apache/Modules/mod_autoindex.so
LoadModule dir_module /System/Library/Apache/Modules/mod_dir.so
LoadModule cgi_module /System/Library/Apache/Modules/mod_cgi.so
LoadModule asis_module /System/Library/Apache/Modules/mod_asis.so
LoadModule imap_module /System/Library/Apache/Modules/mod_imap.so
LoadModule action_module /System/Library/Apache/Modules/mod_actions.so
#LoadModule speling_module /System/Library/Apache/Modules/mod_speling.so
LoadModule userdir_module /System/Library/Apache/Modules/mod_userdir.so
#LoadModule proxy_module /System/Library/Apache/Modules/libproxy.so
LoadModule alias_module /System/Library/Apache/Modules/mod_alias.so
LoadModule rewrite_module /System/Library/Apache/Modules/mod_rewrite.so
LoadModule access_module /System/Library/Apache/Modules/mod_access.so
LoadModule auth_module /System/Library/Apache/Modules/mod_auth.so
#LoadModule anon_auth_module /System/Library/Apache/Modules/mod_auth_anon.so
#LoadModule dbm_auth_module /System/Library/Apache/Modules/mod_auth_dbm.so
#LoadModule digest_module /System/Library/Apache/Modules/mod_digest.so
#LoadModule cern_meta_module /System/Library/Apache/Modules/mod_cern_meta.so
#LoadModule expires_module /System/Library/Apache/Modules/mod_expires.so
#LoadModule headers_module /System/Library/Apache/Modules/mod_headers.so
#LoadModule usertrack_module /System/Library/Apache/Modules/mod_usertrack.so
#LoadModule unique_id_module /System/Library/Apache/Modules/mod_unique_id.so
LoadModule setenvif_module /System/Library/Apache/Modules/mod_setenvif.so
LoadModule WebObjects_module /System/Library/Apache/Modules/mod_WebObjects.so
#Added by Russell attempting to get Apache Jserv to work. Module will not load.
#LoadModule jserv_module /System/Library/Apache/Modules/mod_jserv.so
# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
#AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
#AddModule mod_proxy.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
#AddModule mod_auth_anon.c
#AddModule mod_auth_dbm.c
#AddModule mod_digest.c
#AddModule mod_cern_meta.c
#AddModule mod_expires.c
#AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_WebObjects.c
# added by Russell 8 Feb 2000 attempting to get Apache Jserv to work.
#AddModule mod_jserv.c
--
--------------------------------------------------------------
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]