Friday, January 15, 2010

JBOSS installation

The installation steps are for RHEL 5

1) Create user
#useradd -m jbossadm
#passwd jbossadm
Login an jbossadm

2) Install Java environment
Download JDK 1.6 update latest from 
http://java.sun.com/javase/downloads/index.jsp
Copy to /opt or install folder
#./jdk-6u19-linux-i586.bin
This should install Java under directory jdk1.6.0_19
Note: You can also install JRE alone the same way. JDK comes with utilities such as jar, jconsole, jstack are not available in JRE

3) Install JBOSS EAP 5
Download jboss-eap-5.0.0.GA.zip from Redhat website
Copy to /opt or install folder
#unzip jboss-eap-5.0.0.GA.zip
This should extract content under jboss-eap-5.0 folder

4) Edit your profile file to set system runtime variables. I have installed JDK and JBOSS under /opt
# vi /home/jbossadm/.bash_profile
Update your profile file to read as the following.
# cat /home/jbossadm/.bash_profile
PATH=$PATH:$HOME/bin
JAVA_HOME=/opt/jdk1.6.0_19
JBOSS_HOME=/opt/jboss-eap-5.0/jboss-as
export PATH=$JAVA_HOME/bin:$JBOSS_HOME/bin:$PATH

Exit the shell and re-login for the changes to take effect
5) Verify Java path and version
#which java
#java -version

6) Update the following security files to allow user access.
a) /opt/jboss-eap-5.0/jboss-as/server/default/conf/props/jmx-console-users.properties
b) /opt/jboss-eap-5.0/jboss-as/server/default/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties

c) Setup SuckerPassword for messaging:
Edit /opt/jboss-eap-5.0/jboss-as/server/default/deploy/messaging/messaging-jboss-beans.xml file

Change from
<property name="suckerPassword"> CHANGE ME!! </property>
to
<property name="suckerPassword"> your-password </property>


7) Start JBOSS
# cd $JBOSS_HOME/bin
#./run.sh -b {Specify IP_ADDRESS}
If IP address is not specified, the listeners will start with loopback address 127.0.0.1

8) Test
http://{Specify IP_ADDRESS}:8080/jmx-console

http://{Specify IP_ADDRESS}:8080/admin-console

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›