On Fri, 4 Dec 1998, Markus Fritz wrote: > If you want to run servlets with your apache-webserver, you need > a servlet-engine like JServ (java.apache.org) or JRun > (www.livesoftware.com). > Both come with JSDK (JavaServletDevelopmentKit from SUN) included. > the JSDK with jserv is oldish. You can get a newer one from Sun. I found the instructions with jserv hopeless (and the list of email addresses to report problems/fixes no better). However, I have it running (but no servlets no run yet). I'l attaching a couple of scripts I used to build jserv and apache 1.3.3. Note the scripts are as I used them and run on my computer with bas 2.0. If you're using bash 1.4 or some other script you may need to make some changes. -- Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index.
#!/bin/bash # BuildJserv export CLASSPATH=${JDK_HOME}/lib/classes.zip AVER=1.3.3 JVER=0.9.11 Apache=${1:-~/updates/apache_${AVER}.tar.gz} Jserv=${2:-/redhat/incoming/jserv${JVER}.tar.gz} cd [ -d apache ] || mkdir apache cd apache CD=`pwd` [ -d ${CD}/apache_${AVER} ] && rm -rf ${CD}/apache_${AVER} [ -d ${CD}/jserv${JVER} ] && rm -rf ${CD}/jserv${JVER} echo untarring ${Apache} tar -zxf ${Apache} || exit 4 echo untarring ${Jserv} tar -zxf ${Jserv} || exit 4 CONF=`find ${CD} -name Configuration` echo editting ${CONF} ##ed ${CONF} <<ZZ ##/^AddModule modules.standard.mod_cgi.o/a ## Add support for java ##AddModule modules/extra/mod_jserv.o ##. ##w ##%g/^AddModule/p ##Q ##ZZ ##cp -p ${CD}/jserv${JVER}/mod_jserv.c ${CD}/apache_${AVER}/src/modules/extra/ ##cp -p ${CD}/jserv${JVER}/mod_jserv.c ${CD}/apache_${AVER}/src/ ##pwd cd ${CD}/jserv${JVER} pwd ##ed Makefile <<ZZ ##%s/javac/jikes/ ##w ##ZZ make doc pwd make echo Building apache cd ${CD}/apache_${AVER} BuildApache --add-module=${CD}/jserv${JVER}/mod_jserv.c ls -lG ${CD}/jserv${JVER}/Makefile P=`find . -name httpd` ${P} -l ls -l `find . -name mod_jserv\*` `find . -name mod_\*.s\*o` cat <<ZZ As superuser, you need to cd ${CD}/apache_${AVER} apachectl stop make install ln -s /usr/libexec /home/httpd/html/libexec cd ${CD}/jserv${JVER} # Adjust these if you changed the Makefile mkdir -p /usr/local/java-lib/jserv/api mkdir -p /usr/local/java-lib/jserv/servlets/org/apache/jserv make install /usr/sbin/httpd -l # and check the configuration ZZ
#!/bin/sh #cd /usr/src/redhat/SOURCES/apache_1.3.1 ./configure \ --prefix=/usr \ --sysconfdir=/etc/httpd/conf \ --localstatedir=/var \ --enable-suexec \ --suexec-caller=nobody \ --suexec-userdir=cgi-bin \ --suexec-uidmin=500 \ --suexec-gidmin=500 \ --suexec-safepath="/bin:/usr/bin" \ --logfiledir=/var/log/httpd \ --enable-module=most \ --enable-shared=max \ $@ make