Installing JBoss Application Server 4.2.x on Linux

April 25th, 2008  | Tags: , , ,

In this topic I am going to show you how to install the JBoss Application Server 4.2.x on a Linux station. Although my official Linux distribution is Ubuntu 7.10, you can use the same approach to install the JBoss AS in any Linux distribution (I’ve tested in Slackware 12 and worked fine).

Similar than Tomcat, JBoss installation is very easy.

Basically you have to download and unzip the file, as well as create an Environment Variable.

Downloading JBoss AS 4.2.x

You can get JBoss AS directly from its official website. When I wrote this topic, the latest stable version was: 4.2.2.GA.

You have two choices to download: Source and Binary files. I advice you the binary files because it is easier to install (and I will cover only the binary installation). If you prefer the source file, take a look at its official documentation to figure out how to compile and install the source file.

Installing JBoss

After you get the binary file (a .zip file), you have to unzip it. It is your choice where you will unzip the file. In my workstation, I’ve a folder called java inside my home space where I put all programs java related.

Unzipped the file, it is time to create an environment variable. Different than TOMCAT, JBoss requires only one environment variable called JBOSS_HOME. It must point to the JBoss folder previously unzipped.

Edit the ~/.bashrc file and put the following line in the bottom of the file (supposing the JBoss was unzipped in a folder called /home/your_user/java/jboss-4.2.2.GA

export JBOSS_HOME=/home/jair/java/jboss-4.2.2.GA

Save the file and re-logon your user.

Running JBoss

Enter into JBOSS_HOME/bin directory (cd $JBOSS_HOME/bin) and run the run.sh file (./run.sh).

The JBoss should be started without errors.

To test if the JBoss has been started, try out the following link: http://localhost:8080

You should see the Welcome to JBoss screen.

I hope this topic be useful for anyone.

No comments yet.

TOP