Objective

To install JBoss Enterprise Application Platform 5.2 on Redhat Linux.

Process

1) Download the JBOSS EAP 5.2 source file from the below link                   

  • https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=18923&product=appplatform&version=5.2.0&downloadType=distributions

File name: jboss-eap-5.2.0.zip

2) After downloading the Zip file now extract the zip file in your own location.

Here I have created a path app/sboxj52dev. This is where I am going to install the JBOSS 5.2.

3) Extract the files from the downloaded Source code to the below path.

  • /app/sboxj52dev/

4) Also download the supporting JDK for the JBOSS5.2. The JBOSS 5.2 supports JDK 1.6.

5) Download the JDK 1.6 from the below link

  • http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-  downloads-javase6-419409.html

6) After downloading the JDK1.6 run the JDK and install that in a particular path.

7) For installing the JDK on Linux machine is open a command prompt and go to the folder where the JDK executable is present.

Example: in my PC it is at app/sboxj52dev.

Navigate to app/sboxj52dev/ and run following command

  •  ./jdk-6u45-linux-x64.bin

8) Once you run the above command it will create the directory with the name jdk1.6.0_45 in the location where you try to extract that.

Example:  app/sboxj52dev/jdk1.6.0_45.

9) Now we have to set the JAVA_HOME environment variable.

10) Set the environment variable in run.conf file located at /app/sboxj52dev/jboss-eap-5.2/jboss-as/bin/run.conf

11) In the above file add the below line for setting the JAVA_HOME

  • JAVA_HOME=”/app/sboxj52dev/jdk1.6.0_45”

12) After adding the above JAVA_HOME now save and quit the file.

13) Finally, start the server by running the file run.sh which is present in /app/sboxj52dev/jboss-eap-5.2/jboss-as/bin/run.sh

14) The server log will be created at the /app/sboxj52dev/jboss-as/server/default/log

15) Check in the log about the server status and the IP, port and context on which the server has been started.

  • Example: In my PC the server has been started on 127.0.0.1:8080/admin-console.

16) Access the console by using http://127.0.0.1:8080/admin-console.

17) The credentials for logging into the admin console are present in the below path

  • Example: /app/sboxj52dev/jboss-eap-5.2/jboss-as/server/default/conf/props/jmx-console-users.properties file.

18) The default credentials will be present in the above file and they will be commented like #admin=admin.

19) Uncomment and save the jmx-console-users.properties file and login into the console using the admin=admin credentials.

20) If we want the server to run in standard mode, then while starting the server ,we have to specify the different configuration.

  • Example:   ./run.sh –c standard   or    ./run.sh –c minimal.

21) Before you start the server in any other mode instead of default mode (ex: standard) then check in the /app/sboxj52dev/jboss-eap-5.2/jboss-as/server/standard/deploy/admin-console.war is present or not.

22) If the file admin-console.war is not present,  then you won’t be able to access the admin console but there won’t be any problem in starting the server.

23) For stopping the server we can just use ctrl+c in the window where we have started the server or we can use the shutdown script.

  • Example: ctrl+c   or   ./shutdown.sh -S   or   ./shutdown.sh

24) Limitation with the shutdown command is that we cannot use the shutdown script with the minimal profile. It can only be used for the servers that contain jmx-invoker-service.xml.