Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Installation : (Category) Unix :
Stock RedHat6.0 and ApacheJServ
With the apache-devel package from RedHat6.0 installed, I've built an RPM
package of Apache JServ 1.0, using the attached spec file.

For those who don't know or don't care about how to build an RPM or what
a spec file is, the important line is:

./configure --with-apache-install=/usr \
        --with-java=/usr/local/jdk/bin/java \
        --with-javac=/usr/local/jdk/bin/javac \
        --with-jsdk=/usr/local/jsdk/lib/jsdk.jar \
        --prefix=/usr/lib/jserv \
        --libdir=/usr/lib/jserv \
        --enable-compressed-jar \
        --enable-shared

Hope this helps out those who (like me) like to stick with standard RedHat
packages as much as possible, and like to build their own RPMS for stuff
that doesn't come in an RPM from RedHat.

--- Begin spec file ---

Name: apache-jserv
Version: 1.0
Release: 1
Group: Daemon
Source: Apache_JServ_1.0.tar.gz
Copyright: Apache license.
Summary: Apache JServ servlet engine
BuildRoot: /var/tmp/jserv-root

%description
Custom build of the Apache JServ servlet engine.

%prep
%setup -n ApacheJServ-1.0

%build
CFLAGS=$RPM_OPT_FLAGS ./configure --with-apache-install=/usr \
        --with-java=/usr/local/jdk/bin/java \
        --with-javac=/usr/local/jdk/bin/javac \
        --with-jsdk=/usr/local/jsdk/lib/jsdk.jar \
        --prefix=/usr/lib/jserv \
        --libdir=/usr/lib/jserv \
        --enable-compressed-jar \
        --enable-shared
make

%install
make prefix=$RPM_BUILD_ROOT/usr/lib/jserv libdir=$RPM_BUILD_ROOT/usr/lib/jserv i
nstall
rm -rf $RPM_BUILD_ROOT/usr/lib/jserv/docs
# Apache's APXS script copies the module here...
mkdir -p $RPM_BUILD_ROOT/usr/lib/apache/
mv -f /usr/lib/apache/mod_jserv.so $RPM_BUILD_ROOT/usr/lib/apache/

%files
%doc docs/*
/usr/lib/apache/mod_jserv.so
%dir /usr/lib/jserv
/usr/lib/jserv/ApacheJServ.jar
/usr/lib/jserv/libjserv.la
/usr/lib/jserv/libjserv.so
/usr/lib/jserv/libjserv.so.0
/usr/lib/jserv/libjserv.so.0.0.0
/usr/lib/jserv/mod_jserv.so

--- End spec file ---
samATtopicDOTcomDOTau
[Append to This Answer]
Previous: (Answer) United Nations installation instructions on RH 5.2...
Next: (Answer) How to make Apache startup on system reboot on Solaris
This document is: http://java.apache.org/faq/?file=235
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.