Installating the Java Server

Whatever operational mode you choose, you should follow the following procedure to setup the Java server for each location where it should run.

Note: to use these instructions as they are, Perl is recommended, gmake is required, and GNU install is required. Some instructions are provided for those who don't want to use these tools, but they may not be kept up-to-date.

Compiling JServ

For this, you must have your class path set appropriately. This means it must include the JSDK classes (available from Sun -- check out http://java.sun.com/products/java-server/servlets/index.html), and include those in your classpath. In addition (JSERV_HOME)/jserv/src/java should be in your classpath.

Now, go to the directory in which you unpacked the Apache-JServ distrubution (identified as (JSERV_HOME) above), and go into the jserv/src/java directory. Find the file called Makefile, and edit it, setting the appopriate options (the comments should explain what's needed).

cd (JSERV_HOME)/jserv/src/java/ modify Makefile gmake;gmake install build apache with mod_jserv =========================== mkdir /usr/src/apache_1.3.1/src/modules/jserv ln -s /usr/src/jserv/src/c /usr/src/apache_1.3.1/src/modules/jserv ./configure --prefix=/usr/local/apache \ --activate-module=src/modules/jserv/mod_jserv.o \ --enable-module=most su, then make install Modify httpd.conf: ================== ApJServManual On ApJServProperties etc/jserv.properties ApJServDefaultProtocol ajpv11 ApJServDefaultHost xyzzy ApJServDefaultPort 8007 ApJServSecretKey etc/jserv.secret.key ApJServLogFile var/log/jserv_log ApJServMount /servlets /root Copy conf/jserv.properties to etc. Modify it for your site. Copy conf/zone.properties to etc. Modify it for your site. Copy conf/jserv.secret.key to etc. Modify it for your site. Start jserv: ============ CLASSPATH=/usr/local/apache/jserv/lib/jsdk.jar:/usr/local/apache/jserv/classes:/usr/java/lib/classes.zip export CLASSPATH java org.apache.jserv.JServ /usr/local/apache/etc/jserv.properties start apache: ============= /usr/local/apache/sbin/apachectl start ------------------------------------------------------------ To subscribe: java-apache-on@list.working-dogs.com To unsubscribe: java-apache-off@list.working-dogs.com Problems?: jon@working-dogs.com