Professional Documents
Culture Documents
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 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)
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%
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
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
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
2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
]# 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
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
3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
Download Location:
-------------------------
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