Linux - Unix Learning

LINUX - UNIX Administration Learning

Tuesday, August 17, 2010

Jboss - Jdk Installation


JBoss Application Server is the #1 most widely used Java application server on the 
market. Hundreds of professional open source developers have contributed to the JBoss Application Server over the years and community contributors are not only welcome but encouraged. In fact all JBoss employed contributors to the JBoss Application Server were hired from the community and each of them contributed to an open source project in one way or another.


SOURCE NEEDED:


-- java_ee_sdk-5_01-linux.bin >> http://java.sun.com/javase/downloads/index_jdk5.jsp

-- java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm >> ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/

-- jboss-5.1.0.GA.zip >> http://labs.jboss.com/jbossas/downloads/


JDK INSTALLATION:


Install java using gui base or install using x-windows.

1.) run ./java_ee_sdk-5_01-linux.bin

-- Input the following details in java gui base console

-- Admin

-- Admin Password: (any password)

-- Admin Port: 4848

-- HTTP Port: 8080

-- HTTPS Port: 8181

-- After the installation do not click the start button, choose finish button instead.


2.) Install JAVA compat

-- rpm -i --nodeps java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm


3.) Create environment variable. Add the following lines to the .bashrc


Ex:

-- cd /home/jboss

-- ll -la

-- [root@jbossdev jboss]# ll -la

    -rw-r--r-- 1 jboss jboss 242 Jan 14 15:49 .bashrc

-- vi .bashrc

-- add the following lines below.


# for jboss

export JAVA_HOME=/opt/SDK2/jdk

export PATH=$PATH:$JAVA_HOME/bin


export JBOSS_HOME=/opt/jBoss/jboss-5.1.0.GA

export PATH=$PATH:$JBOSS_HOME/bin


-- after saving the file ( source .bashrc)


4.)As root, type the following command at the shell prompt and you should see something like this:


[root@vsr ~]$ /usr/sbin/alternatives --config java

There are 2 programs which provide 'java'.

Selection Command

-----------------------------------------------

1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java

*+ 2 /usr/lib/jvm/jre-1.5.0-sun/bin/java

Enter to keep the current selection[+], or type selection number:


[root@vsr ~]$ /usr/sbin/alternatives --config javac

There are 1 programs which provide 'javac'.

Selection Command

-----------------------------------------------

*+ 1 /usr/lib/jvm/java-1.5.0-sun/bin/javac

Enter to keep the current selection[+], or type selection number:


[root@vsr ~]$ /usr/sbin/alternatives --config java_sdk_1.5.0

There are 1 programs which provide 'java_sdk_1.5.0'.

Selection Command

-----------------------------------------------

*+ 1 /usr/lib/jvm/java-1.5.0-sun

Enter to keep the current selection[+], or type selection number:

[root@vsr ~]$ java -version

java version "1.5.0_14"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)

Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)


INSTALLATION OF JBOSS (MANUAL INSTALLATION)

1.) Unzip the jboss-5.1.0.GA.zip

ex: unzip jboss-5.1.0.GA.zip

2.) create the directory under /opt
 
ex: mkdir /opt/jBoss

3.) Copy jboss folder to /opt/jBoss

4.) Run jboss application

-- Go to directory /opt/jBoss/jboss-5.1.0.GA/bin

-- type: ./run.sh -b 0.0.0.0 &


4.)Try to test your application.

    Try to access http://localhost:8080/

No comments:

Post a Comment