IDependOn-Set: 1
IDependOn-Set: 13
IDependOn-Set: 15
IDependOn-Set: 2
IDependOn-Set: 86
IDependOn-Set: 87
IDependOn-Set: 88
LastModifiedSecs: 926034029
Parent: 15
SequenceNumber: 4
Title: Arnie Nelson's DSO Installation Instructions
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 922921560
Type: monospaced
Lines: 112
----------
From: "Nelson, Arnold" <Arnold.Nelson@NorstanConsulting.com>
To: "'Java Apache Users'" <java-apache-users@list.working-dogs.com>
Subject: RE: How do I make a DSO -
Date: Wed, Mar 31, 1999, 2:47 PM


Hi, Rodrigo!

I just finished making this work. I gave up on the Red Hat version of
Apache. There are too many default directory settings in the JServ package
which refer to the source compiled version of Apache. I did an rpm -e
uninstall of the Red Hat Apache. Then I downloaded the 1.3.6 source from
Apache, and compiled it with DSO support. The whole structure is set up
under /usr/local/apache.

You need to have the Blackdown JDK1.2pre-v1 kit installed and running as
well as the JSDK2.0 package from sun prior to the Apache-JServ install. Here
is a config.sh script which worked to build the mod_jserv.so file under the
Apache-JServ-1.03b directory (rebuild the tree if you have already done a
make):

./configure \
--prefix=/usr/local/jserv \
--with-jdk-home=/usr/local/jdk1.2 \
--with-jsdk=/usr/local/JSDK2.0/lib/jsdk.jar \
--with-apache-install=/usr/local/apache 

-------------------------------------------------

Here are the additions I made to the httpd.conf file in
/usr/local/apache/conf:


#--------------------------------------#
# Apache JServ Configuration Additions #
#--------------------------------------#

# Load the DSO for mod_jserv
LoadModule jserv_module       libexec/mod_jserv.so

# Setup jserv status program
<Location /status/jserv>
        SetHandler jserv-status
        order deny,allow
        allow from all
</Location>

# Begin jserv directives
<IfModule mod_jserv.c>
        ApJServManual off
        ApJServSecretKey DISABLED
        # ApJServSecretKey /usr/local/apache/etc/jserv.secret.key
        ApJServProperties /usr/local/apache/etc/jserv.properties
        ApJServLogFile /usr/local/apache/var/log/jserv.log
        ApJServMount /servlets /servlets
</IfModule>
-----------------------------------------------------------------

Here are the jserv properties files I set up in /usr/local/apache/etc:

jserv.properties
----------------
port=8007
 
wrapper.bin=/usr/local/jdk1.2/bin/java
wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
wrapper.classpath=/usr/local/jserv/lib/Apache-JServ.jar
 
zones=servlets
servlets.properties=/usr/local/apache/etc/jserv.servlets.properties
 
security.remote.administration=true
security.allowedAddresses=127.0.0.1
#security.authentication=true
#security.secretKey=/usr/local/apache/etc/jserv.secret.key
security.authentication=false
security.selfservlet=true
 
log=false
log.file=/usr/local/apache/var/log/jserv.trace
log.timestamp=true
log.dateFormat=[yyyyMMdd HHmmss.SSS zz]
log.channel.init=false
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=false
log.channel.requestData=false
log.channel.responseHeaders=false
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true
log.channel.singleThreadModel=true


jserv.servlet.properties
------------------------
repositories=/usr/local/apache/share/servlets
 
---------------------------------------------

The properties files are adaptations of the the examples supplied by the
JServ package, and were initially obtained from a good writeup on a link
from jserv.apache.org which is:

http://www.servletcentral.com/1999-01/jserv.dchtml

That is my wrapup. Hopefully, there is enough information there to bridge
the document communications gap. This is a working configuration.

Regards, Arnie Nelson
Norstan Consulting
EndPart: 0
