There are several ways to configure JBoss on Linux Server. JBoss is a subscription/open-source Java EE-based application server runtime platform which runs both Java based applications services & web based applications services. There is no need to install Web server runtime once you have application server runtime platform running on your server unless you have a special requirement.

Below is the step by step procedure to Configure JBoss on the Linux Server.

1) Prerequisite for the JBoss application is to install JDK-Java Development Kit on the server.

Here we have installed JDK with version 6.

[root@system usr]# yum install java-1.6.0-openjdk.x86_64

2) Download the below Jboss Package from the Oracle website.

Package Name : jboss-as-distribution-6.0.0.Final.zip

3) Now we will unzip the package .After unzipping “jboss-6.0.0.Final” package will be extracted.

[root@system Jboss]# unzip jboss-as-distribution-6.0.0.Final.zip

4) Now we will create jboss user , then we will move the package “jboss-6.0.0.Final” to the jboss directory and rename the file to “jboss-6.0” 

[root@system home]# useradd jboss
[root@system home]# passwd jboss

[root@system jboss]# mv jboss-6.0.0.Final /home/jboss
[root@system jboss]# mv jboss-6.0.0.Final jboss-6.0

5) Now to run the application , we will have to provide ownership & permission on the jboss6.0 directory for the jboss user.

[root@system jboss]# chown jboss:jboss jboss-6.0
[root@system jboss]# chmod -R 777 jboss-6.0/

6) Now we will switch user to jboss and try to run the application.

[root@system jboss]# su – jboss
[jboss@system etc]$ cd /home/jboss/jboss-6.0/bin/
[jboss@system bin]$ ./run.sh

(Please note that by default it will take the environment variables.From the below logs you can see that the JBoss application is started)

03:40:02,966 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]

03:40:15,798 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090

03:40:28,348 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final “Neo”] Started in 53s:861ms

7) Now we can open the JBoss Application server GUI by entering the URL: http://localhost:8080 in the Local host server’s explorer.

Configure JBoss
JBoss



8) JBoss application can be stopped by simply entering CTRL-C.

Suggested Article: 5 Easy Steps to Mount NFS Shared Directory on another Linux Machine

Trouble Shooting Steps:


1) The below error logs shows that the permission is not given to the JBoss-6.0 directory.

Unable to set property fileName on class org.jboss.logmanager.handlers.FileHandler: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(libgcj.so.10)
Caused by: java.io.FileNotFoundException: /home/jboss/jboss-6.0/server/default/log/boot.log (Permission denied)

Solution: chmod -R 777 jboss-6.0/

2) The below error logs shows that the Java is either not installed or installed with the non-supported version.

Failed to boot JBoss:
java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)

Solution: yum install java-1.6.0-openjdk.x86_64

Now you are all set to install JBoss application server on your Linux Machine.
Please leave your comments and feedback in the comment box if you find it beneficial.

Leave a Reply

Be the First to Comment!

Notify of
avatar