----------------------------------------------------------------
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 need help! Apache server will not launch if the line
"LoadModule jserv_module  /Local/Library/Apache/Modules/mod_jserv.so"
is in httpd.conf, or if an Include points jserv.conf, which includes the  
same LoadModule line.

The error message I get is basically "reason unknown":
"Syntax error on line 13 of /usr/local/apache/Configuration/jserv/jserv.conf:
Cannot load /Local/Library/Apache/Modules/mod_jserv.so into server:  
(reason unknown)
/usr/local/sbin/apachectl start: httpd could not be started"

Every variant I have been able to think of exhibits the same behavior.  
Other LoadModules work fine. I installed WebObjects as a DSO, and the  
comparable LoadModule line works fine. What is in a .so module, anyway?  
Could this be a java classpath issue? JServ is the only module I have that  
includes a jar file.

My Apache is running on a Mac OS X server machine, which ships with a DSO  
build of Apache Server installed and running. Mac OS X Server is an  
up-to-date bsd unix, but it has its own improved ideas of where files and  
libraries should be. Still, configure and make seem to think they have  
found what they need. Is it perhaps the Java runtime jars?

I downloaded JServ 1.1 and JSDK 2.0, did configure, make, make install.  
The JSDK is working, and servletrunner is willing to serve servlets (by the  
way, what is lost if I just launch servletrunner from a script, and forget  
about JServ? Efficiency? integration?)

I tried downloaded a newer Apache, 1.3.9, built and installed it from  
source. I built it several times, most recently with --enable-module=all.  
It works fine. Jserv 1.1 also appears to build and install fine, but  
nevertheless if I add the LoadModule line, httpd won't launch. No log files  
are written, as httpd does not launch.

In building Apache 1.3.9, I used a prefix of /usr/local/apache, as to not  
overwrite the existing and functional Apache 1.3.6, which under OSX is  
scattered, under /Local/Library/Apache, /System/Library/Apache, etc. If I  
don't specify a prefix, configure will use the OSX server layout from  
config.layout.

I'm about ready to give up on JServ, as I don't know what else to try, but  
maybe some kind soul here will have an insight. Ideas? Below I have the  
output of .configure --layout as I installed Apache 1.3.9, the layout I  
would have if I did not specify the prefix as /usr/local/apache (I'm  
wondering if there are include  problems?), and the configure scripts I  
used to configure Apache and JServ.

Help?! Ideas?!

************* configure layout as Apache was configured *********
./configure --prefix=/usr/local/apache --layout
Configuring for Apache, Version 1.3.9
 + using installation path layout: Mac OS X Server (config.layout)

Installation paths:
               prefix: /usr/local/apache
          exec_prefix: /usr/local
               bindir: /usr/local/bin
              sbindir: /usr/local/sbin
           libexecdir: /Local/Library/Apache/Modules
               mandir: /usr/local/share/man
           sysconfdir: /usr/local/apache/Configuration
              datadir: /usr/local/apache
             iconsdir: /Local/Library/Apache/Icons
            htdocsdir: /usr/local/apache/Documents
               cgidir: /usr/local/apache/CGI-Executables
           includedir:  
/Local/Library/Frameworks/Apache.framework/Versions/1.3/Headers
        localstatedir: /var
           runtimedir: /usr/local/apache/Logs
           logfiledir: /usr/local/apache/Logs
        proxycachedir: /usr/local/apache/ProxyCache

Compilation paths:
           HTTPD_ROOT: /usr/local/apache
      SHARED_CORE_DIR: /Local/Library/Apache/Modules
       DEFAULT_PIDLOG: Logs/httpd.pid
   DEFAULT_SCOREBOARD: Logs/httpd.scoreboard
     DEFAULT_LOCKFILE: Logs/httpd.lock
      DEFAULT_XFERLOG: Logs/access_log
     DEFAULT_ERRORLOG: Logs/error_log
    TYPES_CONFIG_FILE: Configuration/mime.types
   SERVER_CONFIG_FILE: Configuration/httpd.conf
   ACCESS_CONFIG_FILE: Configuration/access.conf
 RESOURCE_CONFIG_FILE: Configuration/srm.conf

*********** configure layout if I did not specify a prefix *******
./configure --layout
Configuring for Apache, Version 1.3.9
 + using installation path layout: Mac OS X Server (config.layout)

Installation paths:
               prefix: /Local/Library/WebServer
          exec_prefix: /usr/local
               bindir: /usr/local/bin
              sbindir: /usr/local/sbin
           libexecdir: /Local/Library/Apache/Modules
               mandir: /usr/local/share/man
           sysconfdir: /Local/Library/WebServer/Configuration
              datadir: /Local/Library/WebServer
             iconsdir: /Local/Library/Apache/Icons
            htdocsdir: /Local/Library/WebServer/Documents
               cgidir: /Local/Library/WebServer/CGI-Executables
           includedir:  
/Local/Library/Frameworks/Apache.framework/Versions/1.3/Headers
        localstatedir: /var
           runtimedir: /Local/Library/WebServer/Logs
           logfiledir: /Local/Library/WebServer/Logs
        proxycachedir: /Local/Library/WebServer/ProxyCache

Compilation paths:
           HTTPD_ROOT: /Local/Library/WebServer
      SHARED_CORE_DIR: /Local/Library/Apache/Modules
       DEFAULT_PIDLOG: Logs/httpd.pid
   DEFAULT_SCOREBOARD: Logs/httpd.scoreboard
     DEFAULT_LOCKFILE: Logs/httpd.lock
      DEFAULT_XFERLOG: Logs/access_log
     DEFAULT_ERRORLOG: Logs/error_log
    TYPES_CONFIG_FILE: Configuration/mime.types
   SERVER_CONFIG_FILE: Configuration/httpd.conf
   ACCESS_CONFIG_FILE: Configuration/access.conf
 RESOURCE_CONFIG_FILE: Configuration/srm.conf


********************** config script used to build Apache 1.3.9
#! /bin/sh
./configure \
        --prefix=/usr/local/apache \
        --enable-module=all \
        --enable-shared=max \
#        
--activate-module=src/modules/jserv/ApacheJServ-1.1/src/c/libjserv.module \
#         --enable-shared=jserv

******************** config script used to build JServ 1.1
#! /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
# edited /System/Library/Java/JavaConfig.plist to include path to Jserv jar



--
--------------------------------------------------------------
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]

Reply via email to