./configure --prefix=/opt/jserv \ --with-apache-src=/opt/src/apache_1.3.12 \ --with-java-platform=2 \ --with-jdk-home=/opt/java \ --with-JSDK=/usr/local/JSDK2.0/lib \ --disable-debuggingRunning the above configure command will return these instructions:
+-STEP 1-------------------------------------------------------+ |Run 'make; make install' to make a .jar file, compile the C | |code and copy the appropriate files to the appropriate | |locations. | +--------------------------------------------------------------+ +-STEP 2-------------------------------------------------------+ |Then cd /opt/src/apache_1.3.12 and run 'make; make install'. | +--------------------------------------------------------------+ +-STEP 3-------------------------------------------------------+ |Put this line somewhere in Apache's httpd.conf file: | |Include /opt/jserv/etc/jserv.conf | | | |Then start Apache and try visiting the URL: | |http://whorfin:1080/servlets/Hello | +--------------------------------------------------------------+The .java servlets exist under /opt/jserv/servlets -- you can change this in /opt/jserv/etc/jserv.conf
You have to clean up the classpath if the Tomcat JSDK exists (as it does on whorfin). Only JSDK 2.0 will work with this version of JServ. If you get a bunch of messages about a JServ class that must be made abstract, the problem is caused by a bad JSDK in your classpath.
Making it work was a bit messy; you need to start it manually and include the below in Apache's httpd.conf:
########## # TOMCAT stuff - it's compiled in, not a module: #LoadModule jserv_module libexec/mod_jserv.soSee the files in sabre's /usr/local/tomcat/conf directory if you need to turn Tomcat back on for any reason.ApJServManual on ApJServProperties "/usr/local/tomcat/conf/tomcat.properties" ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel debug ApJServDefaultPort 8007 AddType text/jsp .jsp AddHandler jserv-servlet .jsp ApJServMount /servlet /ROOT
If a search engine dropped you directly into this document, you should go to the index page to find out what you're reading. This document is a record of a project from 1999-2000 -- it is not a current guide to installing any software product.