Install JBoss : Open Source J2EE Server

JBOSS is open source enterprise level J2EE Server (similar to Oracle Application Server).

                This post covers installation of JBOSS (Open Source J2EE Application Server) on Linux and Windows. I am going to use this JBOSS as application Server for  Oracle Role Manager Installation in my next port.  

Jboss Home Page

Download JBoss Software

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

Related Docs

JBoss Installation Doc
 Download JBoss Software from here

Installation of Role Manager coming soon …..

Share This Post with Your Friends over Social Media!

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Oracle Gold Partner specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

8 comments
BlakGeek says April 30, 2008

What’s up Atul?

You probably should add that if users wanna access the login page remotely, they should start up with

./run.sh -c default -b 0.0.0.0 (or run.bat)

and shutdown.sh -S

At least this is required to get it to work in Redhat Linux. Peace. -BKG

Reply
Atul says April 30, 2008

Thanks buddy, I was behind this information for quite some time .

Thanks for pointing this.

Reply
sridhar1985 says March 31, 2009

Hi Atul,

I want to install JBOSS in my linux machine. Which version is best. Could you please suggest me. Is install procedure is same for all versions.

And in starup command what is -c default -b 0.0.0.0

Thanks in advance,
Sridhar

Reply
sridhar1985 says March 31, 2009

Hi Atul,

I have one more doubt with ANT. Should ANT installed in JBOSS directory or can i install it some where else. If this is the case, Build.xml should be placed in ANT directory or not. How can i deploy my application to JBOSS server. Please explian me. Thanks in advance.

Sridhar

Reply
Sridhar1985 says May 12, 2009

Hi,
I have installed JBOSS on remote linux server.
Now how to deploy my ear file into that.
Can i deploy it with out moving the workspace to that server. Bcoz i dont access the JBOSS console in my local machine. Plz help me out.

Thanks in advance
Sridhar.

Reply
sawanahluwalia says April 12, 2010

Hi,

I can provide training related to JBOSS like
How to shutdown remote instance:
./shutdown.sh -s jnp://ipaddress:1099

or working command line via twiddle.
JBOSS provides command line facility using twiddle.

– How to encrypt password used in oracle-ds.xml
– How to run multiple JBOSS instance on same machine
– Information related to -c ; -b and other such parameters.

Reply
sawanahluwalia says April 13, 2010

JBOSS is a free application server; redhat has customize it and can buy from them and they’ll support you in case of any issues.

Now coming back to command line options -b or -c they are options of run.bat or run.sh

-b is to bind IP address for jboss service
-c is to set the configuration

if you run jboss it’ll start the default configuration but in case you have deployed or customized the server than use -c to start the corresponding server.

Reply
pranali says November 10, 2010

hi Atul………

I followed all the steps, but problem is dat server get started on command prompt but while acessing from internet Explore i cannot able to acess the server.

Thanks

Reply
Add Your Reply