These steps worked for me in setting up Apache JServ 1.0b3 with RedHat
5.2, Apache 1.3.3 with Sun's JSDK 2.0 for UNIX and BlackDown's JDK 117

I untarred all the files and I put them in /usr/Apache-JServ-10b3,
/usr/local/JSDK2.0 and /usr/local/jdk117_v1a.

I added the following lines to the PATH statement in /etc/profile and
added the other environment variables.  Don't forget to add the new
environment variables to the export line a few lines down from where you
added them.
---------------------
PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk117_v1a/bin:/usr/local/JSDK2.0/bin"

JAVA_HOME="/usr/local/jdk117_v1a"
JSDK_HOME="/usr/local/JSDK2.0"
CLASSPATH="$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar"
---------------------

I wanted to configure Apache JServ so it could be loaded dynamically
(DSO).  In the /usr/local/Apache-JServ-10b3 directory I typed the
following lines:
---------------------
./configure --with-apache-install=/usr \
            --prefix=/usr --enable-apache-conf
---------------------

I personally have installed the Apache source RPM, so that is in my /usr
directory tree.  I don't think it is actually needed though I could be
wrong.

At any rate, if you get no error messages, and all seems to go well with
the configuration,  then do:
---------------------
make
---------------------

If all goes well with no error message, do:
---------------------
make install
---------------------

I then copied the /usr/local/Apache-JServ-10b3/src/c/mod_jserv.so file
to /etc/httpd/modules.

In my /etc/httpd/conf/httpd.conf file, I added the line below in the
LoadModule statements:
---------------------
LoadModule jserv_module       /etc/httpd/modules/mod_jserv.so
---------------------

And below that in the AddModules statements:
---------------------
AddModule mod_jserv.c
---------------------

After all my LoadModule and AddModule lines, I added the line:
---------------------
Include /usr/local/Apache-JServ-10b3/example/jserv.conf
---------------------

In the /usr/local/Apache-JServ-10b3/example/jserv.conf file I then
commented out the LoadModule line near the top.  I then made a change to
the jserv redirect statement.  Below is where I made the change so that
I could use www.mydomain.com/jserv/ from any machine on my network
instead of just on my localhost system.:
----------------------
<Location /jserv/>
SetHandler jserv-status
order deny,allow
deny from all
allow from localhost 127.0.0.1 <Right here I added my domain ip address>

</Location>
-----------------------

In the /usr/local/Apache-JServ-1ob3/example/jserv.properties file,
uncomment the line under the Security Parameters section that has:
---------------------
#security.selfservlet=true
---------------------

Restart Apache with:
---------------------
/etc/rc.d/init.d/httpd restart
---------------------
You might want to make sure that Apache restarted.

You should be able to do:
www.yourdomain.com/jserv/ and www.yourdomain.com/example/Hello and all
should work !

C'ya,
Edmund
[EMAIL PROTECTED]





----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to