Operating System: RHEL 7 (64-bit)
Product: JBOSS Enterprise Application Platform 6.3
This blog describes the process of installing JBOSS 6.3 EAP on REHL7. You can also use CenOS 7 for the same purpose. It is expected that the reader has sufficient knowledge of installing and configuring software on Linux operating system and knowledge of Middleware Technologies.
You can download the latest community version of JBOSS from www.jboss.orgsince REDHAT provides JBOSS download only to the users having a valid subscription.
JBOSS 6.3 provides three types of installation options:
1. ZIP Files
2. RPM Packages
3. JAR Package
In this blog, we shall use ZIP based installation.
STEP-1 Create user and necessary folders
· Create user “jboss” and give it a password
· Create a folder, named “servers” and change its ownership to “jboss” user
chown jboss.jboss –Rf /servers/
STEP-2 Download and configure java
Create ‘java’ directory
Download JDK6 or higher, from internet website, I recommend using Oracle website. Extract the downloaded JDK and copy it in /usr/java
STEP-3 Download JBOSS and configure JBOSS path
Download the ZIP install package of JBOSS EAP 6 from RedHat website
Unzip the contents of file and copy them in /server/jboss-eap6
STEP-4 Configure the .bash_profile for JBOSS user
su – jboss
Perform following changes in the file as shown in “Figure 1” .
STEP-5 Installing the JBOSS service
The startup script is located in the EAP_HOME/bin/init.d directory.
Modify the jboss-as.conf file
# General configuration for the init.d scripts,
# not necessarily for JBoss AS itself.
# The username who should own the process.
# The amount of time to wait for startup
# The amount of time to wait for shutdown
# Location to keep the console log
Note: The values for JBOSS_HOME and JBOSS_USER must be set correctly If any value is missing in the above configuration, write it yourself.
Make a directory “/etc/jboss-as” and copy the jboss-as.conf file inside it.
cp jboss-as.conf /etc/jboss-as/
Copy the Statrtup script to “/etc/init.d”
cp jboss-as-standalone.sh /etc/init.d
Start the JBOSS service
service jboss-as-standalone start
service jboss-as-standalone.sh start
On RHEL6 a green OK shall appear if everything is ok, On RHEL7 nothing will happen and prompt will return back.
STEP-6 Verifying and testing JBOSS service
Verify the jboss status. Result will be similar to “Figure 2”
ps –eaf | grep jboss
To view ports being used by jboss, type following command. The result shall be similar to “Figure 3”.
Open the browser and type http://127.0.0.1:8080. The welcome screen similar to “Figure 4” will appear.
In order to use “Administration Console” on WEB UI, you need to define a user
Go to the /servers/jboss-eap6/bin and execute the add-user.sh script . The results shall be similar to “Figure 5”.
Now click on “Administration Console” link. The box similar to “Figure 6” will appear. Provide the username/password you just created in previous step and press the “OK” button.
The JBOSS administration console similar to “Figure 7” will appear on screen.