uCosminexus Application Server, System Setup and Operation Guide
The sample program that uses JSF is stored in the following directory:
Cosminexus-installation-directory\CC\examples\jsf
Following is the overview and execution procedure of the sample:
This sample program provides the JSF application for executing the following operations:
JSF sample program uses JSF. To use JSF, you must set a class path in usrconf.cfg. For details on setting the class path, see 3.4 Setting the class path (Setting development environment) in the uCosminexus Application Server Common Container Functionality Guide.
The following figure shows the method of executing the sample program of JSF:
Figure M-48 Execution example of the sample program of JSF
The following figure shows the configuration of the sample program:
Figure M-49 Configuration of the sample program of JSF
The following procedure describes the method for executing the sample program:
See Appendix M.1(1) Setting the J2EE server.
See Appendix M.1(2) Customizing the J2EE server.
See Appendix M.1(3) Starting the J2EE server.
Compile the sample programs with the batch file (compile.bat) provided in the sample. This batch file creates a WAR file (helloworld.war) and EAR file (helloworld.ear).
Use the batch file (deployApp.bat) provided in the sample to deploy the application. See Appendix M.1(5) Importing, setting and starting the application.
Start the browser and specify the following string in the URL:
http://Machine-name: Port-number/helloworld/
If the in-process HTTP server is available, the following URL is specified by default:
http://localhost/helloworld/
See Appendix M.1(6) Stopping and deleting the application.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.