Whole document tree
    

Whole document tree

Server Side Java

6. Server Side Java

6.1. mod_jserv

6.1.4. Building and installing


cd /usr/local

tar -xvzf ApacheJServ-1.1.2.tar.gz
cd ApacheJServ-1.1.2

./configure \
--prefix=/usr/local/jserv \
--with-apxs=/usr/local/apache/bin/apxs \
--with-JSDK=/usr/local/JSDK2.0 \
--enable-EAPI \

make
make install

It is important to use flag --enable-EAPI if apache is compiled with mod_ssl!

6.2. jakarta-tomcat

6.2.4. Installing the binaries


cd /usr/local

tar -xvzf jakarta-tomcat-4.0.3.tar.gz

cd jakarta-tomcat-4.0.3

cd bin

rm *.bat

echo export JAVA_HOME=/usr/lib/java/ >> /etc/profile
. /etc/profile

Now you should be able to startup tomcat:

/usr/local/apache/jakarta-tomcat-4.0.3/bin/startup.sh

You should now be able to connect to: http://localhost:8080/index.html

For the further steps like installing your servlets and jps-files, you are responsible by youself...

Notice: Since the author is NOT a Java-Programmer he will not be able to help you with Java-Problems! The author is an experienced SysAdmin and could you give some hints: Be sure your CLASSPATH Variable is set right. This is the most common error done. Have fun, and as metioned above, the author welcomes some feedback to be able to provide more information to the community.