IDependOn-Set: 1
IDependOn-Set: 108
IDependOn-Set: 114
IDependOn-Set: 13
IDependOn-Set: 144
IDependOn-Set: 15
IDependOn-Set: 2
LastModifiedSecs: 924491069
Parent: 15
SequenceNumber: 2
Title: DSO Installation with Solaris 2.6, Apache 1.3.6, JServ1.0b3
Part: 0
Author-Set: r_kinder@yahoo.com
LastModifiedSecs: 924491040
Type: 
Lines: 42
My procedure to install JServ on Solaris 2.6 with Apache 1.3.6, JDK 1.2 Solaris VM (build Solaris_JDK_1.2_01_dev06_fcsV, native threads, sunwjit) consisted of the following steps:

1) Ensure perl is installed, if not get it from gnu.

2) Install apache with DSO support (under /usr/local/apache):
        ./configure --enable-module=so --enable-shared=max
        make ; make install

3) Compile and install JServ (under /usr/local/jserv):
        ./configure --with-jsdk=/path/to/jsdk --with-apache-install=/usr/local/apache
        make ; make install

4) Re-configure and re-compile apache:
        ./configure --enable-module=so --enable-shared=max --add-module=/path/to/mod_jserv.c --enable-shared=jserv --enable-module=jserv
        make ;  make install

5) You must copy the file /path/to/mod_jserv.c/mod_jserv.so into /usr/local/apache/libexec (the shared library needed by apache).
   For some reason (for me), when apache compiled it only created a stub library with the actual jserv functionality missing, so moving the lib file from the jserv source directory (~340K) to overwrite the stubby version (~34K) seemed to work.

6) Edit /usr/local/apache/conf/httpd.conf and add the line
        Include /path/to/JRun/source/example/jserv.conf
   somewhere after the LoadModule and AddModule commands. This is as per the instruction from the output of the 'make' command in step 3.

7) Edit the file /path/to/JServ/Sources/example/jserv.properties, and make sure that the CLASSPATH setting does not contain a line like:
        wrapper.classpath=
Other classpaths are OK, ie
        wrapper.classpath=/path/to/jsdk/jsdk.jar

An indication of this problem is that apache will not start up, with the error log (no error output from jserv mod at all) saying:

[Mon Apr 19 13:00:31 1999] [crit] (2)No such file or directory: Apache JServ enc
ountered a fatal error; check your ApJServLogFile for details if none are presen
t in this file.  Exiting.

Comment out any blank classpath lines and it should run (barring any other problems)

8) Try the example as mentioned in the output from the JServ make command in step 3.

You may then want to change the example configuration files, move them to a directory outside the source tree, add another zone etc.

Hope this helps,
Richard
EndPart: 0
