sluugls.gif (4572 bytes)

Apache HTTP
spacer.GIF (49 bytes)
MySQL

spacer.GIF (49 bytes)
PHP
spacer.GIF (49 bytes)
Java JDK
spacer.GIF (49 bytes)
Java Servlets
spacer.GIF (49 bytes)
Apache JServ
spacer.GIF (49 bytes)
ht://Dig

sluugls_text.GIF (7934 bytes)

ApacheJServ

URL
http://jserv.apache.org

Sample Compile and Installation

# tar xvzf Apache-JServ-1.0fc1.tar.gz 
# cd ApacheJServ-1.0fc1/
# more INSTALL
# ./configure --with-apache-src=/opt/src/apache_1.3.6 --enable-apache-conf --prefix=/opt/jserv --with-jdk-home=/opt/jdk/bin --with-jsdk=/opt/jsdk

From the output of ./configure...
mkdir /opt/src/apache_1.3.6/src/modules/jserv
moving Apache JServ module into /opt/src/apache_1.3.6/src/modules/jserv
checking running of Apache Configuration... 
./config.status --activate-module=src/modules/jserv/mod_jserv
Configuring for Apache, Version 1.3.6
 + using installation path layout: Apache (config.layout)
 + activated php3 module (modules/php3/libphp3.a)
 + activated jserv module (modules/jserv/mod_jserv)
.
.
.
Apache Directory: /opt/src/apache_1.3.6
Apache Version: 1.3
Module Type: static (mod_jserv will be statically compiled into server)
Apache include flags: -I/opt/src/apache_1.3.6/src/include -I/opt/src/apache_1.3.6/src/os/unix

Run make to compile the Java portion of Apache JServ.
(optional) Run 'make install' to make a .jar file, and copy it and the 
docs into the directory you specified as --prefix:
/opt/jserv\n

Then cd to /opt/apache_1.3.6 and run make.

Then, to run the example configuration, put this in your httpd.conf:
Include /opt/src/ApacheJServ-1.0fc1/example/jserv.conf

Then try visiting the URL:
http://www.stllinux.org:SERVER_PORT/example/Hello

If that works then you have successfully setup Apache JServ.
If that does not work then you should consult the FAQ-O-Matic
URL referenced below.
You might consider putting frequently used options into ./configure-options

For further information please read the documentation in the docs directory.

Many frequently asked questions are answered in the FAQ-O-Matic:

http://java.apache.org/faq/


# make
# make -n install
# make install
# cd ../apache_1.3.6
# /opt/web/bin/apachectl stop
# make
# make install
# cd /opt/web/conf/
# cp httpd.conf httpd.conf_19990614
# vi httpd.conf
# diff httpd.conf httpd.conf_19990614 
848,849d847
< 
< Include /opt/jserv/conf/jserv.conf
# /opt/web/bin/httpd -l
# cd /opt/jserv/
# mkdir conf servlets
# cd conf
# cp /opt/src/ApacheJServ-1.0fc1/conf/httpd.conf jserv.conf
# cp /opt/src/ApacheJServ-1.0fc1/conf/jserv.properties .
# cp /opt/src/ApacheJServ-1.0fc1/conf/zone.properties servlets.properties
# cp jserv.conf jserv.conf_19990616
# cp jserv.properties jserv.properties_19990616
# cp servlets.properties servlets.properties_19990616
# diff jserv.conf jserv.conf_19990616 
21,22c21
< #ApJServProperties ./conf/jserv.properties
< ApJServProperties /opt/jserv/conf/jserv.properties
---
> ApJServProperties ./conf/jserv.properties
28,29c27
< #ApJServLogFile ./logs/mod_jserv.log
< ApJServLogFile /opt/web/logs/mod_jserv.log
---
> ApJServLogFile ./logs/mod_jserv.log
34,35c32
< #ApJServLogLevel notice
< ApJServLogLevel info
---
> ApJServLogLevel notice
< ApJServLogLevel info
---
> ApJServLogLevel notice
88,89c85
< #ApJServMount /servlets /root
< ApJServMount /servlets /servlets
---
> ApJServMount /servlets /root
95,96c91
< #ApJServMountCopy on
< ApJServMountCopy off
---
> ApJServMountCopy on
129d123
< 
# diff jserv.properties jserv.properties_19990616 
55c55
< wrapper.classpath=/opt/jserv/lib/ApacheJServ.jar
---
> wrapper.classpath=/opt/src/ApacheJServ-1.0fc1/src/java/ApacheJServ.jar
91c91
< zones=servlets
---
> zones=root
97c97
< servlets.properties=/opt/jserv/conf/servlets.properties
---
> root.properties=/opt/src/ApacheJServ-1.0fc1/conf/zone.properties
116c116
< #security.selfservlet=true
---
> security.selfservlet=true
130c130
< security.allowedAddresses=127.0.0.1
---
> #security.allowedAddresses=127.0.0.1
180c180
< log.file=/opt/web/logs/jserv.log
---
> log.file=/opt/src/ApacheJServ-1.0fc1/jserv.log
244d243
< 
# diff servlets.properties servlets.properties_19990616 
25c25
< repositories=/opt/jserv/servlets
---
> repositories=
146d145
< 
# cd /opt/web/
# chown -R nobody:nobody logs
# /opt/web/bin/apachectl start
    

Servlet Samples
hello.java
get.java
servletpost.html
post.java