Myfaces-components, Building myfaces-components on windows – HP Integrity NonStop J-Series User Manual

Page 148

Advertising
background image

Deploying and Running Sample MyFaces Application on NonStop

By default, the MyFaces distribution package does not include any sample application. To verify
if the framework has been installed successfully and to demonstrate some basic features of MyFaces,
a sample application called myfaces-components, is provided in the SAMPLES file.

NOTE:

The SAMPLES.zip file is distributed as a part of the NonStop Samples for Java frameworks

- T0874 in the T0874AAB.BIN file in Scout. For information on how to install the T0874AAB.BIN
file from Scout, see

https://h20453.www2.hp.com/scout/download_help.htm

.

Before you deploy the sample applications, complete the following steps:

1.

Download the SAMPLES.zip file from Scout.

2.

Add the .zip extension to it.

The file is renamed as SAMPLES.zip.

3.

Extract the SAMPLES.zip file to a location on the Windows system.

The NS-Samples-for-Java-Frameworks folder appears.

NOTE:

The absolute path of the NS-Samples-for-Java-Frameworks folder is referred

as <My SASH Home>.

This section describes the following steps for the myfaces-components application:

Building the sample application on Windows system

Deploying the sample application on NonStop system

Running the sample application on NonStop system

myfaces-components

The myfaces-components sample application demonstrates the use of various MyFaces components
such as DataList, and TabbedPane.

This section describes the following steps for the myfaces-components sample application.

“Building myfaces-components on Windows” (page 148)

“Deploying myfaces-components on NonStop” (page 149)

“Running myfaces-components on NonStop” (page 149)

Building myfaces-components on Windows

To build myfaces-components on your Windows system, complete the following steps:

1.

Go to the <My SASH Home>\myfaces\samples\myfaces-components directory on
your Windows system. Among the other files, this directory consists of the following
sub-directories:

\src

includes the source files for the myfaces-components sample application.

\src\main\webapp

includes the necessary configuration files required to build the application WAR file.

2.

Build myfaces-components (myfaces-components-0.0.1-SNAPSHOT.war) using Maven:
a.

Go to the <My SASH Home>\myfaces\samples\myfaces-components directory
on your Windows system, using the command:

command prompt> cd <My SASH Home>\myfaces\samples\myfaces-components

b.

Build the myfaces-components application web archive, using the command:

148

MyFaces Framework

Advertising
This manual is related to the following products: