we use the Apache/Servlet, no problems with it.
Here some hints how we installed it (not nice, but it works):
Install Servlet Development Kit (needed by apache)
http://java.sun.com/products/servlet/index.html
Download -> /usr/local/jsdk20-solaris2-sparc.tar.Z
uncompress jsdk20-solaris2-sparc.tar.Z
tar xvf jsdk20-solaris2-sparc.tar
ln -s JSDK2.0 jsdk
cd /usr/local/jsdk/lib
mkdir classes
cp jsdk.jar /usr/local/apache/classes
apache installation on Redhat 5.1 Linux:
www.apache.org/java: download jserv0.9.11.tar.gz
www.apache.org: download apache_1.3.3.tar.gz
cd /usr/local
tar zxvf jserv0.9.11.tar.gz
tar zxvf apache_1.3.3.tar.gz
cd jserv0.9.11
make
cp mod_jserv.c ../apache_1.3.3/src/modules/extra/
/usr/local/apache_1.3.3
vi src/Configuration.tmpl
add line:
-> AddModule modules/extra/mod_jserv.o
./configure --prefix=/usr/local/apache
make
setenv JSERV_PATH /usr/local/jserv
setenv CLASSPATH ${CLASSPATH}:$JSERV_PATH/servclasses.zip:$JSERV_PATH/src
As root:
make install
Edit: /usr/local/apache/etc/{httpd,access,srm}.conf
in httpd.conf add lines:
Options +ExecCGI
ServletBinary /usr/local/jdk/bin/java
ServletClassPath /usr/local/apache/classes/classes.zip
ServletClassPath /usr/local/apache/classes/jsdk.jar
....
#Log path relative to server root
ServletErrorLog /usr/local/apache/servlet.log
#Internal communications port for Servlet<->Apache comms
ServletPort 9091
ServletProperties ./etc/servlet.properties
ServletAlias /servlets /usr/local/apache/share/servlets/
in access.conf add:
<Directory /usr/local/apache/share/servlets>
AllowOverride None
Options +ExecCGI
</Directory>
<Directory /usr/local/apache/share/cgi-bin>
AllowOverride None
Options +ExecCGI
</Directory>
in srm.conf add:
DocumentRoot /usr/local/apache/share
# Uncomment the following line to enable Apache's Servlet operation
AddHandler java-servlet .class
cp /usr/local/jserv/servlet.properties /usr/local/apache/etc/servlet.properties:
servlets.default.initArgs=DefaultTemplDir=/usr/local/apache/share/templates/
mkdir -p /usr/local/apache/share/servlets
-> insert your servlets
cd /usr/local/apache/sbin; ./apachectl restart
check log files:
cd /usr/local/apache/var/log; tail -f error_log;
tail -f access_log
cd /usr/local/apache; tail -f servlet.log
Marcel
-- Marcel Ruff [EMAIL PROTECTED] http://www.lake.de/home/lake/swand/