Thursday, August 15, 2013

Installing JBoss Application Server 7.1.1 on Ubuntu 13.04 Desktop OS

Hello There,

Hope you all are doing good..!

Wishing you a very happy and prosperous Independence Day, hope you will remember the people who made this day happen in our life.

Lets get back to the basics..

Today we are here to study about JBoss Application Server Installation in a freshly installed Ubuntu Operating System.

I just recently found out that Ubuntu 13.04 is the best version ever improved, it should as its the latest one at this time.. (15 August 2013). So giving a thought of installing JDK/JRE and JBoss Application server on it.

Lets Start...

Get the necessary files.

You will need from --  download it..!! ( I thought its needless to say ;))

And you might need to download the Linux version of Oracle Java 7 as below.

Step 1. Login to terminal verify if Java is there or not and wait for alternative thoughts.  -- Go to Root.

 Step 2. You might need to download the specific package for this version ( Java 7) of Java.

Step 3. Update the Package Cache and Search in the available packages in Ubuntu package cache with the help of below commands.

#apt-get update

This will get the list of packages available for download and install for Ubuntu.

#apt-cache search ^oracle_java

We see here that required Java 7 Package is not available in the packages list, we may need to update the repository with other ways.

Step 4. Update the repository with below command  - add new repository.

#add-apt-repository ppa:webupd8team/java

This will make the URL passed available to the Package Manager to update the package repository next time you run the update.

Step 5. Run the apt-get update.

This will update the list of available packages with new Java Packages available with the new source we have added recently.

Update is complete, then try to search for Java package in the list.

Here is the result..!!

Step 6. Install Java - #apt-get install oracle-java-installer

This will download, extracts and install the Java package into Ubuntu Operating System.

You might need to agree to the License Agreement which pops out in the same window.

Step 7. Verify the installation.

Downloading is in Progress.

Step 8. Check the Java Version as below.

Verifying the version :

#java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)

Next Steps....!!
Installing JBoss Application Server 7.1.1

Step 1. Copy the downloaded file to some secured safe location in your filesystem.

root@shailesh-Inspiron-N4010:/# df -k
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda6      127819492 4303196 117016764   4% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1986872       4   1986868   1% /dev
tmpfs             399024     876    398148   1% /run
none                5120       0      5120   0% /run/lock
none             1995104     160   1994944   1% /run/shm
none              102400      44    102356   1% /run/user

root@shailesh-Inspiron-N4010:/# ls
bin    dev   initrd.img      lost+found  opt   run      srv  usr
boot   etc   initrd.img.old  media       proc  sbin     sys  var
cdrom  home  lib             mnt         root  selinux  tmp  vmlinuz

Step 2. I will copy on this to /opt/RedHat/JBoss/AS hope this will be good location for JBoss to hide in.

# mkdir -p /opt/RedHat/JBoss/AS
# cd  /opt/RedHat/JBoss/AS
# cp /home/shailesh/Downloads/ .

Step 3. Unzip it.

root@shailesh-Inspiron-N4010:/opt/RedHat/JBoss/AS# ls

Rename the file just to refer it refer as our package.

# mv jboss-as-7.1.1.Final jboss-as-7.1.1


root@shailesh-Inspiron-N4010:~# echo $JAVA_HOME

Add this line in standalone.conf in /opt/RedHat/JBoss/AS/jboss-as-7.1.1/bin directory


Step 4. Start the JBoss Instance (standalone configuration).

It took value of JBOSS_HOME with the help of simple logic in file.

if [ "x$JBOSS_HOME" = "x" ]; then

Step 5. Verify the Configuration start-up.

Then try accessing the console for JBoss Application Server.

05:33:35,807 INFO  [] (Controller Boot Thread) JBAS015951: Admin console listening on

Step 6. Access the console at address :

We might need to add a user so that we can successfully access the console, let us try that.

 Step 7. Add User details as below, for Testing purpose I have used Admin User.

root@shailesh-Inspiron-N4010:/opt/RedHat/JBoss/AS/jboss-as-7.1.1/bin# ./

What type of user do you wish to add?
 a) Management User (
 b) Application User (
(a): a

Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : Admin  
Password :
Re-enter Password :
The username 'Admin' is easy to guess
Are you sure you want to add user 'Admin' yes/no? yes
About to add user 'Admin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'Admin' to file '/opt/RedHat/JBoss/AS/jboss-as-7.1.1/standalone/configuration/'
Added user 'Admin' to file '/opt/RedHat/JBoss/AS/jboss-as-7.1.1/domain/configuration/'

Step 8. Restart the standalone server configuration and try accessing the console - Click on Try Again link on console screen.

Here I am done with this tutorial, please let me know if you need any more information, please drop into comments or email me directly.

Hope you have enjoyed the Blog Post.

Shailesh Dyade


jake george said...

Application Server Management
Management Interface
User Management
Network and Port Configuration
Data source Management
Configuring Modules
Global Values
Application Deployment
Securing JBOSS EAP 6
Subsystem Configuration
HTTP Clustering and Load Balancing or +919000444287

clickorbit said...

Thank you for jboss application server installation guide.

Arun Kumar said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Alfresco , kindly contact us
MaxMunus Offer World Class Virtual Instructor led training on Alfresco. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us:
Name : Arunkumar U
Email :
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –

Gopal Ainavalli said...

We have IT expert trainer. We provide Training Material and Software Support. Maximums has successfully conducted 100000+ training in India, USA, UK, Australia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us : Oracle Weblogic Server Training