Setup JBoss on Ubuntu 8.0.4 LTS Server Edition

jbosslogoA recent task was to setup a JBoss Application Server on a Linux box. I had selected Ubuntu 8.0.4 LTS Server Edition for this task. I created an Ubuntu virtual machine on a VMware Workstation. This was a fresh install and the only optional installation package added during the installation was LAMP, which should have nothing to do with the installation of JBoss; it was a personal preference. I started from scratch, as too many guides make too many assumptions in their build. I am new to this, and this is what worked for me. JBoss requires JAVA JDK 1.4+ to run. The next plan is to attempt this installation on a Red Hat 5 Enterprise Server, since both products are Red Hat products. I have found, however, that Ubuntu was easier for a first attempt as there seems to be more information available in the user community. This guide picks up from after the installation of the Ubuntu 8.0.4 LTS Server Edition and at the command prompt.

Procedure

  • Download and Install Java
    sudo apt-get install sun-java5-JDK
  • Download and Install Joe (a full featured terminal-based screen editor.)
    sudo apt-get install joe
  • Download JBoss
    Note: I downloaded JBoss and copied to another location as I couldn’t get
    wget to download from Sourceforge.

    wget "http://www.wherever.com/downloads/jems-installer-1.2.0.GA.jar"
  • Install JBoss
    Source: http://ubuntuforums.org/showthread.php?t=230721

    java -jar jems-installer-1.2.0.GA.jar -installGroup default installpath=/home/admin or whatever username/jbossfolder
  • Launch joe to edit path
    sudo joe /etc/profile
  • Edit path in profile
    JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun
    
    export"export JDK_HOME="${java_home}"
    
    export PATH="${JAVA_HOME}/bin:${PATH}"
  • Save profile CTL K X
  • Go to folder to launch
    cd jboss
    cd bin
  • Run JBoss
    sh run.sh

The Result
In my web browser on another workstation, http://192.168.1.126:8080/web-console/
The default account information
user: admin
pass: admin

jboss

1 Comment

  • admin November 4, 2008 Author

    Corrected the download link for JBoss.

Comments are closed.