JBOSS Installation

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

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.5.0_15
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 ion Linux

1. If JDK is not already installed on linux machine; download jdk-1_5_0_15-linux-i586.bin from sun site and install it on Linux by executing bin file. This will create directory like jdk1.5.0_15, I installed it under /stage/JDK/ so my JAVA_HOME is /stage/JDK/jdk1.5.0_15

2. Unzip jboss-4.2.2.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=/stage/JDK/jdk1.5.0_15
export JBOSS_HOME=/stage/JBOSS/jboss-4.2.2.GA
export PATH=$JAVA_HOME/bin:$JBOSS_HOME/bin:$PATH

4. execute like . jboss.env

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 ./run.sh (To Start)
2.4 ./shutdown.s (To Stop)

Accessing JBOSS server
Open browser and type URL http://localhost:8080

0 comments:

My Instagram