[Deprecated] General considerations - JBoss 7

Warning: This documentation is out-dated, newest version of the documentation is available at https://gazelle.ihe.net/gazelle-documentation/General/jboss7.html

This page describes the prerequisite to the installation of Gazelle applications. All the tools developed in the context of the Gazelle testbed project are developed for JBoss (5.0.1-GA or 7.2.0.final) and use a postgreSQL database.

We recommand to install the Gazelle tools in a Debian-like environment, it's the environment running on IHE Europe servers so we know that it is correctly working. Moreover, most of the installation and configuration procedures are described for such an environment.

PostgreSQL

We are currenlty using PostgreSQL 9.1 on most of our servers.

Install a JVM

Most of our applications running on JBoss7 are using java 7. Consider installing openJDK.

sudo apt-get install openjdk-7-jre

Install JBoss 7 application server

  1. Get package from: http://gazelle.ihe.net/jboss/jboss-as-7.2.0.Final.zip
    wget -nv -O /tmp/jboss-as-7.2.0.Final.zip https://gazelle.ihe.net/jboss7/jboss-as-7.2.0.Final.zip

    Be sure to use this packaged version, we provide the postgresql driver, and use different versions for modules hibernate and javassist.

  2. Get init script from: http://gazelle.ihe.net/jboss/init.d_jboss7
    wget -nv -O /tmp/init.d_jboss7 https://gazelle.ihe.net/jboss7/init.d_jboss7
    
  3. Install jboss in the /usr/local folder
    cd /usr/local
    sudo mv /tmp/jboss-as-7.2.0.Final.zip .
    sudo unzip ./jboss-as-7.2.0.Final.zip
    sudo ln -s jboss-as-7.2.0.Final jboss7
    sudo chown -R jboss:jboss-admin /usr/local/jboss7
    sudo chmod -R 755 /usr/local/jboss-as-7.2.0.Final
    sudo chown -R jboss:jboss-admin /var/log/jboss7/
    sudo chmod -R g+w /var/log/jboss7/
    
  4. Install the init script and make it start at system startup
    sudo mv /tmp/init.d_jboss7 /etc/init.d/jboss7
    sudo chmod +x /etc/init.d/jboss7
    sudo update-rc.d jboss7 defaults

 

Install JBoss 7 application server - Automated script

 

wget https://gazelle.ihe.net/jenkins/job/Installer_script/ws/jboss7/setup7.sh
wget https://gazelle.ihe.net/jenkins/job/Installer_script/ws/jboss7/common.sh
wget https://gazelle.ihe.net/jenkins/job/Installer_script/ws/jboss7/jboss7
sudo chmod +x setup7.sh
sudo chmod +x common.sh
sudo chmod +x jboss7
./setup7.sh