Howto install Jonas 3 on SME server (English)

Howto
install Jonas 3 on SME server

Author:  Van hees Michel <michel_AT_vanhees.cc>

Contributor:  

Release supported: e-smith SME 6.0

License: color=#ff0000>GPL

Last updated:

Sunday, June 20, 2004 08:49 AM

 


Problem: 
You want to install Jonas application server on your SME server

Solution:
  Follow this HowTo


Resources:
http://jonas.objectweb.org PLEASE
READ!

Inspiration: http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0-howto.htm


STEP 1: Install JAVA

Follow the Howto from HERE


STEP 2: Get Ant archive




Download archive
named apache-ant-1.6.1-bin.tar.gz from ant.apache.org
or download my local copy from HERE


STEP 3: Uncompact
archive and move it

#
tar -xvzf apache-ant-1.6.1-bin.tar.gz

# mv apache-ant-1.6.1 /var/

STEP 4: Get
Jonas archive



Download archive named jonas3.3.6-tomcat4.1.30.tgz from jonas.objectweb.org.

I'm sorry to not propose mirror for that files but size are to big for me.


STEP 5: Uncompact
archive and move it

#
tar -xvzf
jonas3.3.6-tomcat4.1.30.tgz

# mv jonas-3-3-6 /var/

STEP 6: Create
init script and adapt it



Create the script for automatic launch.

You can download the script HERE

If you follow the previous instruction and the Howto from Helmut you don't
have to adapt the script.

Otherwise you have to modify the 3 environnement variable (JAVA_HOME, ANT_HOME,
JONAS_ROOT) to reflect your configuration.

#
pico /etc/init.d/jonas3


#======================BEGIN CUT HERE =============================

#!/bin/sh

#

# Startup script for Jonas 3.3.6

if [ -x
/etc/rc.d/init.d/functions ]; then

    . /etc/rc.d/init.d/functions

fi

# Tomcat
name Smile

JONAS_PROG=jonas3

export
JAVA_HOME=/usr/java/jdk

export ANT_HOME=/var/apache-ant-1.6.1

export JONAS_ROOT=/var/jonas-3-3-6

start()
{

    echo -n "Starting $JONAS_PROG: "

    if
[ -f /var/lock/subsys/jonas3 ] ; then

        echo "process allready
running"

        return -1

    else

        daemon
$JONAS_ROOT/bin/unix/jonas start

        RETVAL=$?



        echo

        [ $RETVAL = 0 ] && touch /var/lock/subsys/jonas3

        return $RETVAL

    fi

}

stop()
{

    echo -n "Stopping $JONAS_PROG: "

    if [ -f /var/lock/subsys/jonas3 ] ; then

        daemon
$JONAS_ROOT/bin/unix/jonas stop

        rm -f /var/lock/subsys/jonas3

        RETVAL=$?

    else

        echo "$JONAS_PROG
not running"

        return -1

    fi

}

case "$1"
in

    start)

        start

        ;;

    stop)

        stop

        ;;

    *)

        echo "Usage: $JONAS_PROG {start|stop}"

        exit 1

esac

exit $RETVAL

#===================================END CUT HERE====================================


STEP 7: Initialisation
of Jonas service



If you don't want that Jonas start automatically, you can skip this step.

#
/sbin/chkconfig
--add jonas3

# ln -s /etc/rc.d/init.d/jonas3 /etc/rc.d/rc7.d/S80jonas3

STEP 8: Start
up

#
service jonas3 start

 

Category: 
Howtos pour E-Smith/SME