Installing and Deploying JBOSS Applications

You can install jboss in your with 7 simple steps :

1) Download the JBOSS from their community site :

http://www.jboss.org/jbossas/downloads.html

I took JBoss 5.1.0-GA.

2) Extract it to your installation directory, say ‘/opt/jboss/’

$ unzip ./jboss-5.1.0.GA.zip -d /opt/jboss

3) Set the environmental variables to make the applications work

export JAVA_HOME=/opt/jdk1.6.0_23
export JBOSS_HOME=/opt/bin/jboss-5.1.0.GA
export PATH=$JAVA_HOME/bin:$PATH

4) Simply start the JBOSS server

$ /opt/jboss/bin/run.sh

5) Pack your applications into war file

$ jar -cvf helloworld.war *.jsp WEB-INF

The above command packs all jsp files into WAR package

6) Copy them into the default deploy directory in Jboss server.

$ cp ./helloworld.war $JBossHome/server/default/deploy/

7) Check it on your browser :

http://localhost:8080/helloworld/helloworld.jsp

Advertisements

2 thoughts on “Installing and Deploying JBOSS Applications

  1. the best blog i have seen for linux …. thank you 4 your shearing the knowledge its really useful in many ways :)A

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s