Install and Deploy JBoss Application Server

By: Abinaya Emailed: 1728 times Printed: 2329 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

In this tutorial let's go over the process to setup JBoss application server to run web applications.

Install JDK 5.0

You can run the java -version command from your operating system's command line to check the version of your current JDK installation. If you are running a JDK earlier than 5.0, you need to upgrade. For Linux/Unix and Windows users, you can download the latest JDK from Sun's http://java.sun.com/j2se/1.5.0/download.jsp web site. For Mac OS X users, you should download the beta version of Apple JDK 5.0 from the http://www.apple.com/java/ site.

In order to run JBoss AS successfully, you also need to set the JAVA_HOME environment variable and point it to your JDK 5.0 installation directory. On a Windows system, you can do that via the XXX tool (i.e., XXX --> XXX --> XXX --> XXX). On a Unix / Linux / Mac OS X system, you can do it via shell scripts.

Install JBoss AS

To install JBoss AS, you first have to download it from the http://labs.jboss.com/portal/jbossas/download web site. Make sure that you download the installer file (e.g., the jboss-4.0.4-installer.jar file). Run the installer with the java -jar jboss-4.0.4-installer.jar command. You will go through a series of screens to consent the license terms, and select an installation directory (see Figure 1)

Select an installation directory

Figure 1. Select an installation directory

When the installer prompts you to select a server configuration, select either "ejb3" or "ejb3 with clustering" (see Figure 2).

Select the EJB3 modules to install

Figure 2. Select the EJB3 modules to install

You will be asked to choose a configuration name for this installation, leave it as default (see Figure 3). This way, you will be able to start the server without extra command line arguments.

Use "default" as the configuration name

Figure 3. Use "default" as the configuration name

The installer will also give you options to secure JMX remote invokers. Those invokers allow remote users to look into your running server and even do things with it. Do secure all those and give a username/password combo to protect those resources (see Figure 4.).

Secure all JMX invokers

Figure 4. Secure all JMX invokers

How about the Seam library?

Since an independent Seam container needs to be loaded for each Seam application (see ???), the jboss-seam.jar file should be included in the application EAR file.

Deploy and Run Applications

To deploy a web application, you only need to copy the .ear application file (i.e., the build target from the source code) into the JBoss AS's server/default/deploy directory. To start the server, run bin/run.sh (or bin\run.bat on Windows). You can now access the web application URL http://localhost:8080/myapp/. Of course, replace myapp with the application URL configured in your EAR (or WAR) file.

Ant

In order to build the example application from source code, you should also have Apache Ant installed. Please refer to the Ant documentation on how to install and use it.


JSF Home | All JSF Tutorials | Latest JSF Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(1)


1. View Comment

Thanks a lot. It was very helpful

View Tutorial          By: Faith Justin at 2008-12-07 06:52:29

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Abinaya
How to compile a Java program - javac
The clone() Method in Java
Data Types in Java
JSP Example to connect to MS SQL database and retrieve records
faces-config.xml to DirectTraffic in the JSF Application
Enabling Expression Language Evaluation in JSP
Using malloc() Function in C
ActionErrors and ActionError in Struts
Open, Creat, Close, Unlink system calls sample program in C
Structures and Functions in C
Introduction to JSP expression language
Multi-dimensional Arrays in C (Explained using date conversion program)
A C program similar to grep command in UNIX
Type Conversions in C (String to Integer, isdigit() etc)
Basics of C

More Tutorials in JSF
Struts Vs JSF (A comparison of Struts against JSF)
faces-config.xml to DirectTraffic in the JSF Application
<convertNumber> and <convertDateTime> in JSF
Action listeners in JSF
Calling Multiple Listeners in JSF
Using Javascript in JSF
How to open a new browser window from my JSF page?
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
JSF - TreeNode.setID gets IllegalArgument Exception
Install and Deploy JBoss Application Server
What is JSF (JavaServer Faces)?
Differences between JavaServer Faces technology and Struts
JSF Basics
The Relationship Between JSF and Other Java EE Technologies
JSF Life Cycle

More Latest News
Most Viewed Articles (in JSF )
How to open a new browser window from my JSF page?
Calling Multiple Listeners in JSF
Struts Vs JSF (A comparison of Struts against JSF)
Installing JSF
Using Javascript in JSF
Action listeners in JSF
Install and Deploy JBoss Application Server
Java Bean Scopes in JSF
Controlling Page Navigation in JSF - Static and Dynamic Navigation
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
faces-config.xml to DirectTraffic in the JSF Application
<convertNumber> and <convertDateTime> in JSF
What is JSF (JavaServer Faces)?
Differences between JavaServer Faces technology and Struts
JSF Basics
Most Emailed Articles (in JSF)
Action listeners in JSF
Install and Deploy JBoss Application Server
What is JSF (JavaServer Faces)?
Differences between JavaServer Faces technology and Struts
JSF Basics
The Relationship Between JSF and Other Java EE Technologies
JSF Life Cycle
Installing JSF
Java Bean Scopes in JSF
Controlling Page Navigation in JSF - Static and Dynamic Navigation
Accessing Context Data in Beans using JSF
Using Javascript in JSF
How to open a new browser window from my JSF page?
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
JSF - TreeNode.setID gets IllegalArgument Exception