December 2009

You are currently browsing the monthly archive for December 2009.

Requirements

  • JDK 1.5 or 1.6
  • Installer Jboss eap 4.3 or higher

Installation

Create jboss user


~# adduser jboss && passwd jboss

Update ~/.bashrc


#JAVA Settings
export JAVA_HOME=/usr/java/latest
export PATH=$JAVA_HOME/bin:$PATH

#JBOSS Settings
export JBOSS_HOME=/home/jboss/EnterprisePlatform-4.3.0.GA_CP07/jboss-as
export JAVAPTH=$JAVA_HOME/bin
export JBOSS_CONF=default
export JBOSS_HOST="0.0.0.0"

Install JBoss eap


~$ java -jar enterprise-installer-4.3.0.GA_CP07.jar

Follow the graphic installer and complete the installation.

Set up as service

As root:

ln -s /home/jboss/EnterprisePlatform-4.3.0.GA_CP07/jboss-as/bin/jboss_init_redhat.sh jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc3.d/S84jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc5.d/S84jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc4.d/S84jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc6.d/K15jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc0.d/K15jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc1.d/K15jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc2.d/K15jboss

Edit the $JBOSS_HOME/bin/jboss_init_redhat.sh to allow loading the user profile:

#Add this line before any script content
. /home/jboss/.bashrc

Test

As root:

~# service jboss start

Now JBoss should be available at:

http://YOUR_ADDRESS:8080