I spent 2 days cracking my head on this before I finally saw the light...
==============================
Installation HOW-TO
==============================
1. Remove Apache, Kaffe and the JDK 1.0x that comes with the standard COL2.2 distribution.
# rpm -e apache
# rpm -e kaffe
# rpm -e jdk-static
# rpm -e jdk
2. Apply OS upgrades and security patches (see Caldera's site for latest stuff)
3. Download the following :
------------
Apache 1.3.6
------------
ftp://ftp.calderasystems.com/pub/contrib/RPMS/libc6
Files to download :
apache-1.3.6-3.i386.rpm
apache-devel-1.3.6-3.i386.rpm
apache-docs-1.3.6-3.i386.rpm
----------------------
Apache JServ 1.0 final
----------------------
http://java.apache.org
Files to download :
(I'm sure you know, since you're looking at this message)
----------------------
Java Development Kit
----------------------
http://www.blackdown.org
Files to download :
jdk1.1.7v3 (green threads)
----------------------------
Java Servlet Development Kit
----------------------------
http://www.javasoft.com
Files to download
jsdk version 2.0 (NOT 2.1 ! Very important !)
4. Install Apache 1.3.6 RPMs
Files to be installed :
# rpm -i apache-1.3.6-3.i386.rpm
# rpm -i apache-devel-1.3.6-3.i386.rpm
# rpm -i apache-docs-1.3.6-3.i386.rpm
Apache will be started automatically after the install
5. Install JDK117v3
# tar -zxvf jdk_filename
Add into /etc/profile
export PATH=/path/to/jdk/bin:$PATH
Test JDK by typing "java -version"
6. Install JSDK2.0
# tar -zxvf jsdk_filename
Add into /etc/profile
export PATH=/path/to/jsdk/bin:$PATH
JAVA_HOME=/path/to/jdk
JSDK_HOME=/path/to/jsdk
Test JSDK by typing "servletrunner" (Note : Apache MUST be running). Then surf to this URL : http://localhost:8080/servlet/SimpleServlet
You should see a Simple Servlet HTML page
7. Finally, install Apache JServ
for DSO
# tar -zxvf Apache_JServ_1.0.tar.gz
# cd ApacheJServ-1.0
# ./configure --with-apache-install=/usr \
--prefix=/usr/local/jserv \
--enable-apache-conf \
--with-jsdk=/path/to/jsdk
# make
# make install
8. Create directory
# cd /etc/httpd
# mkdir modules
9. Copy mod_jserv
# cp /path/to/ApacheJServ-10/src/c/mod_jserv.so /etc/httpd/modules
10. Edit the httpd.conf file
Look for the 'LoadModules' statements, and add :
LoadModule jserv_module /etc/httpd/modules/mod_jserv.so
Look for the AddModules statements, and add :
AddModule mod_jserv.c
Look for section where 'Include' statements can be put, and add:
Include /path/to/ApacheJServ-10/example/jserv.conf
10. Edit the jserv.conf file (found in /path/to/ApacheJServ/example directory)
Comment out the LoadModule line near the top
11. Edit the jserv.properties file
Uncomment the line that says :
#security.selfservlet=true
12. Restart Apache
# apachestl restart
13. Surf to : http://localhost/jserv/ (Note the trailing slash -- it must be included !!)or http://localhost/example/Hello
14. That's it ! Hope it works for you !!
Regards,
Pascal Chong Yu Meng
Singapore
pascalcymATfcmailDOTcom |