Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Installation : (Category) Unix :
Apache 1.3.6, JDK 117v1a, JSDK2.0, Jserv1.0b3 on RH5.2
Here is the complete procedure that I used to set up Apache 1.3.6,
JDK 117v1a, JSDK 2.0, JServ 1.0b3, nad JServSSI on a server-class 
installation of RedHat 5.2.

A lot of this information is specific to my system, but I think it will
be useful to others that are having trouble with the JServ install.

------------------------------------------
Installing Apache 1.3.6

Log in as root
mkdir /usr/local/
cd /usr/local/
download the apache_1.3.6.tar.gz file
        From: ftp.win.or.jp/pub/network/www/apache/dist
decompress and de-archive it.
cd apache_1.3.6
./configure
make
make install
cd /usr/local/apache/conf
edit httpd.conf
        Make: ServerRoot /usr/local/apache (This was pre-set)
        Make: DocumentRoot /usr/local/apache/htdocs (This was pre-set)
        Make: ServerAdmin webmaster@JAMMConsulting.com
save httpd.conf
Edit /etc/rc.d/init.d/httpd
        place a # on the front of the line "daemon httpd"
Append to /etc/rc.d/rc.local:
/usr/local/apache/bin/apachectl start
html files go in /usr/local/apache/htdocs

-------------------------------------------
Installing JDK 1.1.7
cd /usr/local
ftp xfer.nitric.com
cd pub/java-linux/JDK-1.1.7/i386/glibc/v1a
get jdk_1.1.7-v1a-glibc-x86.tar.gz
tar zxvf jdk_1.1.7-v1a-glibc-x86.tar.gz

Dont forget to put path to it in .bashrc:
PATH=$PATH:/usr/local/jdk117_v1a/bin

-------------------------------------------
Installing JSDK 2.0

Use lynx to doanlead the servlet dev kit.
http://www.javasoft.com/cgi-bin/download2.cgi
Naviagte to it and download it.

tar xvf jsdk20-solaris2-sparc.tar
rm jsdk20-solaris2-sparc.tar

---------------------------------------------
Setting up Apache Jserv

Must have apache in source form (See above)

login as root
cd /usr/local
lynx http://java.apache.org/jserv/dist/
retrieve Apache-JServ-1.0b3.tar.gz
tar zxvf Apache-JServ-1.0b3.tar.gz  

Add to /home/neil/.bashrc:
        JAVA_HOME=/usr/local/jdk117_v1a
        JSDK_HOME=/usr/local/JSDK2.0
        CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar
        PATH=$JAVA_HOME/bin:$JSDK_HOME/bin:$PATH
        export PATH JAVA_HOME JSDK_HOME CLASSPATH           
Logout and log back in to set variables.

login as neil
su root
. /home/neil/.bashrc
cd /usr/local/Apache-JServ-1.0b3
./configure
Answer y to installing jserv in apache directory
make
make install
cp /usr/local/Apache-JServ-1.0b3/src/c/* /usr/local/apache_1.3.6/src/modules/extra
cd /usr/local/apache_1.3.6
./configure --prefix=/usr/local/apache --add-module=src/modules/extra/mod_jserv.c --enable-shared=jserv --enable-module=jserv
make
make install
edit /usr/local/apache/conf/httpd.conf
        Add: LoadModule jserv_module libexec/mod_jserv.so
        append the file /usr/local/Apache-JServ-1.0b3/conf/httpd.conf.in to it
        Modify: ApJservProperties /usr/local/Apache-JServ-1.0b3/conf/jserv.properties
cd /usr/local/Apache-Jserv-1.0b3/conf
edit jserv.properties
        modify: root.properties=/usr/local/Apache-Jserv-1.0b3/conf/zone.properties
        modify: log.file=/usr/local/apache/logs/jserv.log
copy zone.properties.in zone.properties
edit zone.properties:
        Add path to servlets directory on repositories line
        Can have multiple servlets on multiple repositories lines
        I added repositories=/usr/local/apache/servlets
Then:
mkdir /usr/local/apache/servlets 
chmod -R 755 /usr/local/apache/servlets 
Place the TestServlet.class in this directory.
chgrp nobody /usr/local/apache/logs
reboot the machine

Should be able to access servlet at http://neil86.august.net/servlets/TestServlet

Useful utility:
        /usr/local/apache/bin/apachectl start -- Starts the server
        /usr/local/apache/bin/apachectl stop -- Stops the server

Running Jserv manually:
First, set "ApJServManual On" in /usr/local/apache/conf/httpd.conf

Next use this script to run jserv:
--
#!/bin/sh

CLASSPATH=/usr/local/jdk117_v1a/lib/classes.zip:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/jserv.jar

/usr/local/jdk117_v1a/bin/java -classpath $CLASSPATH org.apache.jserv.JServ /usr/local/Apache-JServ-1.0b3/conf/jserv.properties 
--

---------------------------------------
Setting up JServSSI

This is needed to use the servlet tag in shtml files

First, get the JServSSI distribution:
        login as root
        cd /usr/local
        lynx http://jserv.apache.org/jservssi/dist
        Get the file Apache_JservSSI_1.0.tar.gz
        tar zxvf Apache_JservSSI_1.0.tar.gz

Login as root
Edit /home/neil/.bashrc and the following to the classpath:
        CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar:.
        . /home/neil/.bashrc
        cd Apache-JServ-SSI-19981216/src
        javac -d . *.java
        jar cf0 ApacheJServSSI.jar .
Edit /usr/local/apache/conf/httpd.conf to add:
        ApJServAction .shtml /servlets/org.apache.jservssi.JServSSI 
        DirectoryIndex index.shtml index.html

Add the line below to /usr/local/Apache-JServ-1.0b3/conf/jserv.properties:      wrapper.classpath=/usr/local/Apache-JServ-SSI-19981216/src/ApacheJServSSI.jar

Let me know if you find any errors or need some help,
    Neil Aggarwal
    neil@JAMMConsulting.com
neilATJAMMConsultingDOTcom
[Append to This Answer]
Previous: (Answer) DSO Installation with Solaris 2.6, Apache 1.3.6, JServ1.0b3
Next: (Answer) DSO on AIX 4.2.1, Apache 1.3.6 and JServ 104b
This document is: http://java.apache.org/faq/?file=144
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.