HP Integrity NonStop H-Series User Manual
Page 230
NOTE:
•
The
myfaces-core-1.2.5-bin.zip
and
myfaces-core-1.2.5-bin.tar.gz
files include the MyFaces framework libraries and third party libraries that are required
to build MyFaces applications. These files only differ in their compression formats.
•
The sample application (Tomahawk) discussed in this section has been verified using
MyFaces version 1.2.5 only.
3.
Extract the
myfaces-core-1.2.5-bin.zip
or
myfaces-core-1.2.5-bin.tar.gz
file into a directory on your Windows system.
This directory will be referred as the
<MyFaces Home>
. Among other directories and files,
<MyFaces Home>
contains the following sub-directory:
\lib
includes MyFaces core libraries
myfaces-impl-1.2.5.jar
,
myfaces-api-1.2.5.jar
, and third-party libraries usually required to build MyFaces
applications.
Copying MyFaces Core Runtime Libraries from Windows to NonStop
To copy the MyFaces Core runtime libraries from your Windows system to your NonStop system,
complete the following steps:
1.
Go to
<MyFaces Home>
and create JAR files of the
<MyFaces Home>\lib
directory on
your Windows system using this command:
command prompt> cd “<MyFaces Home>”
command prompt> jar –cvf myfaces_lib.jar lib
For example:
command prompt> cd “C:\myfaces-core-1.2.5-bin”
command prompt> jar –cvf myfaces_lib.jar lib
2.
Create a version-specific MyFaces directory <
NonStop MyFaces Home
> in the OSS
environment on your NonStop system using the command:
OSS> mkdir -p <NonStop MyFaces Home>
For example, create a directory structure
/usr/tandem/sash/myfaces-core-1.2.5
.
OSS> mkdir -p /usr/tandem/sash/myfaces-core-1.2.5
3.
Copy
myfaces_lib.jar
from
<MyFaces Home>
to
<NonStop MyFaces Home>
and
extract it using the OSS command:
OSS> cd <NonStop MyFaces Home>
OSS> jar –xvf myfaces_lib.jar
After extraction,
<NonStop MyFaces Home>
must have the
<NonStop MyFaces
Home>/libone
sub-directory.
NOTE:
The contents of the
<NonStop MyFaces Home>/lib
directory on your NonStop
system must be exactly same as the
directory on your Windows system.
This completes the installation of MyFaces runtime libraries on your NonStop system. You can
use these libraries when developing and running MyFaces applications on a NonStop system.
Deploying and Running Sample MyFaces Application on NonStop
By default, the MyFaces distribution package does not include any sample application. In order
to verify the installation and demonstrate some basic features of MyFaces, a sample application
called myfaces-components, is provided in the
SAMPLES
file.
230
Installing MyFaces Framework