INSTALL JBOSS EAP6.3 ON REDHAT ENTERPRISE LINUX 7

By -
Share:

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.org, since 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

useradd jboss

passwd jboss

mkdir /servers

chown jboss.jboss –Rf /servers/

 

STEP-2 Download and configure java

Create ‘java’ directory

mkdir /usr/java

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” .

 

clip_image001

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 to following

 

==================================================================

# General configuration for the init.d scripts,
# not necessarily for JBoss AS itself.
# The username who should own the process.
JBOSS_USER=jboss
JBOSS_HOME=/servers/jboss-eap6/
# The amount of time to wait for startup
STARTUP_WAIT=30
# The amount of time to wait for shutdown

SHUTDOWN_WAIT=30
# Location to keep the console log
JBOSS_CONSOLE_LOG=/var/log/jboss-as/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

On RHEL7
service jboss-as-standalone start

On RHEL6

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

clip_image002

Figure 2

To view ports being used by jboss, type following command. The result shall be similar to “Figure 3”.

netstat –ntl

clip_image003

Figure 3

Open the browser and type http://127.0.0.1:8080. The welcome screen similar to “Figure 4” will appear.

clip_image004

Figure 4

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”.

clip_image005

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.

clip_image006

Figure 6

The JBOSS administration console similar to “Figure 7” will appear on screen.

clip_image007

Figure 7

Share: