----------------------------------------------------------------
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 running Linux Mandrake 7, Apache 1.3.11, and JServ 1.1... I went through
all the installation stuff that I could find anywhere and JServ doesn't
work.  If I type in a URL like http://localhost/servlets/Hello it gives me a
HTTP Not Found error.  I really don't know how else to explain it, so I'm
including my documentation of everything I've done:

-----

(JDK 1.2.2)
+ Go to ftp://xfer.nitric.com/pub/java-linux/JDK-1.2.2/i386/rc4 and download

jdk-1.2.2-RC4-linux-i386-glibc2.1.2.sh.
+ Type:
 # cd /root
 # mv jdk-1.2.2-RC4-linux-i386-glibc2.1.2.sh /usr/local
 # cd /usr/local
 # chmod +x jdk-1.2.2-RC4-linux-i386-glibc2.1.2.sh
 # jdk-1.2.2-RC4-linux-i386-glibc2.1.2.sh
 # export

PATH=/usr/local/jdk1.2.2/bin:$PATH

(JSDK 2.0)
+ Go to http://www.sun.com/software/solaris/java/download.html.
+ You'll have to sign in and then download JSDK 2.0.
+ Unpack the tar file, if you have to, move the JSDK2.0 directory to
/usr/local.

(Apache)
+ This installation procedure is for DSO support.
+ Go to http://www.apache.org/dist and download apache_1.3.11.tar.gz.
+ Type:

# cd /root (or wherever you downloaded the file to)
# mv apache_1.3.11.tar.gz /usr/local/src
# cd /usr/local/src
# tar zvfx apache_1.3.11.tar.gz
# cd apache_1.3.11
#
./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=
max
# make; make install

(JServ)
+ Go to http://java.apache.org/jserv/dist and download
ApacheJserv-1.1.tar.gz.
+ Type:

# cd /root (or wherever you downloaded the file to)
# mv ApacheJServ-1.1.tar.gz /usr/local/src
# cd /usr/local/src
# tar zvfx ApacheJServ-1.1.tar.gz

+ Add these lines to /root/.bashrc:
 JAVA_HOME=/usr/local/jdk1.2.2
 JSDK_HOME=/usr/local/JSDK2.0
 CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/bin:$PATH
 PATH=$JAVA_HOME/bin:$JSDK_HOME/bin:$PATH
 export JAVA_HOME JSDK_HOME CLASSPATH PATH
+ Log out, log back in (as root) so that the changes take effect.

# cd /usr/local/src/ApacheJserv-1.1
# ./configure --with-apxs=/usr/local/apache/bin/apxs
# make; make install

+ Make the following changes to /usr/local/apache/conf/httpd.conf:
  + At the end of the file, add this statement: "Include
/usr/local/jserv/etc/jserv.conf
  + Find all the LoadModule statements and add "LoadModule jserv_module
libexec/mod_jserv.so" to the list.
  + Find all the AddModule statements and add "AddModule mod_jserv.c" to the
list.

+ Find these statements in /usr/local/jserv/etc/jserv.conf, if you need to,
change them to this:
  ApJServProperties /usr/local/jserv/etc/jserv.properties
  ApJServLogFile /usr/local/jserv/logs/mod_jserv.log
  ApJServSecretKey DISABLED
  ApJServMount /servlets /root

+ Add these statements (if you need to) to the appropriate locations in
/usr/local/jserv/etc/jserv.properties (read the comments to find out where
they go):
  wrapper.bin=/usr/local/jdk1.2.2/bin/java
  wrapper.class=org.apache.jserv.JServ
  wrapper.classpath=/usr/local/jserv/libexec/ApacheJServ.jar (or wherever
your ApacheJServ.jar file is)
  wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar (or wherever your
jsdk.jar file is)
  zones=root
  root.properties=/usr/local/jserv/etc/zone.properties

(Reinstall Apache, with JServ included in the source)
+ If mod_jserv.so is not in /usr/local/apache/libexec, do a find file to
find it and then copy it to that directory.
+ Type:
# cp /usr/local/src/ApacheJServ-1.1/src/c/mod_jserv.c
/usr/local/src/apache_1.3.11/src/modules/jserv
# cp /usr/local/src/ApacheJServ-1.1/src/c/mod_jserv.o
/usr/local/src/apache_1.3.11/src/modules/jserv
# cp /usr/local/src/ApacheJServ-1.1/src/c/libjserv.a
/usr/local/src/apache_1.3.11/src/modules/jserv
# cp /usr/local/src/ApacheJServ-1.1/src/c/libjserv.module
/usr/local/src/apache_1.3.11/src/modules/jserv
# cd /usr/local/src/apache_1.3.11
#
./configure --prefix=/usr/local/apache --activate-module=src/modules/jserv/l
ibjserv.a
# make; make install

---

Thanks,
Jon
[EMAIL PROTECTED]



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