You are on page 1of 4

JBoss+ JPortal Install JBoss JPortal 2.6.7GA Open Source J2EE Server v1.

Install JBoss : Open Source J2EE Server, and Combined JBoss +


JPortal on Linux Server

By Kefa Rabah, krabah@globalopenversity.org May 2008

This article covers installation of JBOSS (Open Source J2EE Application Server) on Linux and Windows.
I am also going to show you how to install the bundled JBoss+JPortal as Application Server that you
can use to develop and setup Single-Sign-On (SSO) Identity Management access control. You can also
use JPortal to manage network users.

Download JBoss Software

Download JBoss 4.2.2.GA from here (This is platform independent software so you can install this
software on windows, Linux, Solaris or any other operating system)

Save file jboss-4.2.2.GA.zip to Linux/windows

Installation on Windows
1. Download and Install JDK, if not already installed on windows machine.

2. Unzip jboss-4.2.2.GA.zip

3. Set following environment variables according to your server. In my case they are set to following
directory

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
JBOSS_HOME=C:\atul\role_manager\jboss-4.2.2.GA

4. Ensure these two environment variable are set by typing following on command prompt

echo %JAVA_HOME%
echo %JBOSS_HOME%

5. Installation on windows is complete

Installation on Linux
1. If JDK is not already installed on your Linux machine; download jdk-6u11-linux-i586.bin from
sun site and install it on Linux by executing bin file. This will create a directory like jdk1.6.0_11, I
installed it under /usr/java/ so my JAVA_HOME is /usr/java/jdk1.6.0_11

2. Unzip jboss-4.2.3.GA.zip on Linux. This will create directory like jboss-4.2.2.GA

3. Create environment file like jboss.env like

export JAVA_HOME=/usr/JDK/jdk1.6.0_11
export JBOSS_HOME=/usr/JBOSS/jboss-4.2.2.GA
export PATH=$JAVA_HOME/bin:$JBOSS_HOME/bin:$PATH

4. execute like:

chmod +x jboss.env

1
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org A GOV Open Knowledge Technical Publication HowTo


JBoss+ JPortal Install JBoss JPortal 2.6.7GA Open Source J2EE Server v1.2

Start/Stop JBOSS

1. On Windows
1.1 Ensure environment variable JBOSS_HOME and JAVA_HOME are set
1.2 Go to command prompt
1.3 cd %JBOSS_HOME%\bin
1.4 run.bat \\To Start
1.5 shutdown.bat \\To Stop

2. On Linux
2.1 Execute jboss.env file created above
2.2 cd $JBOSS_HOME/bin
2.3 sh ./run.sh \\To Start
2.4 sh ./shutdown.s -S \\To Stop

3. Accessing JBOSS server

Open browser and type URL: http://localhost:8080

2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org A GOV Open Knowledge Technical Publication HowTo


JBoss+ JPortal Install JBoss JPortal 2.6.7GA Open Source J2EE Server v1.2

4. Installing JBoss+Portal Bundle on Linux

4.1. Downloads jboss-portal-2.6.7.GA-bundled.zip from


http://www.jboss.org/jbossportal/downloads/

4.2. Create a JBOSS directory in /usr/ directory as follows:

]# mkdir /usr/JBOSS

4.3. Move the downloaded to the /usr/JBOSS directory and then unzip it:

]# mv jboss-portal-2.6.7.GA-bundled.zip /usr/JBOSS

]# unzip jboss-portal-2.6.7.GA-bundled.zip

4.4. Create or add to your environment file as above

export JBOSS_HOME=/usr/JBOSS/jboss-portal-2.6.7.GA
export PATH=$JBOSS_HOME/bin:$PATH

Alternatively you can add the above two lines at the top of you profile under /etc/profile, however,
this requires you to logout for it to take effect.

4.5. Log back in and check that the environment is set correctly by issuing this command:

]# echo $JBOSS_HOME
/usr/JBOSS/ jboss-portal-2.6.7.GA

4.6. Run it as follows:

]# cd $JBOSS_HOME/bin \\ change to bin directory

]# sh ./run.sh \\ start server

]# sh ./shutdown.sh –S \\ stop server

4.7. Accessing JBoss + JPortal server

Open browser and type URL: http://localhost:8080/portal

5. Enjoy JBoss portling!

3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org A GOV Open Knowledge Technical Publication HowTo


JBoss+ JPortal Install JBoss JPortal 2.6.7GA Open Source J2EE Server v1.2

Download Location:

1. Download JBoss Software from here: http://www.jboss.org/jbossas/downloads/


2. Download JBoss + JPortal Software from here

-------------------------

Kefa Rabah is the Founder and CIO, of Serengeti Systems Group Inc. Kefa is knowledgeable in several
field of Science & Technology, IT Security Compliance and Project Management, and Renewable Energy
Systems. He is also the founder of Global Open Versity, a Center of Excellence in eLearning.

4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org A GOV Open Knowledge Technical Publication HowTo

You might also like