Product installation and Running

nexacro platfrom HTML5 14

nexacro platform API Installation Guide

Pre-checklist before nexacro platform API Installation

Checklist before Installation

1) Check WAS Installation and Web Application(Context) configuration are completed.
2) Check WAS Account for nexacro API file upload using FTP
3) Check the lib folder of WAS Application(Context)
   For example)  [application patch]/WEB-INF/lib
4) Should know how to restart WAS
5) Check nexacro xapi License

Receiving License

Check the information below and then Contact to sales team for License request
1) The number of core of server
2) IP Address of WAS
3) Domain Name for accessing WAS (This is used when we issue client License )

Installation of nexacro platform HTML5 API

Summary of Installation

After configuring Application(Context) in WAS, Upload Service_API (nexacro-xapi-1.1.jar, commons-logging-1.1.jar) and License(nexacro14_server_license.xml into the lib folder on application patch then restart WAS.

Installation in detail

1) Login into WAS by user ID which have WAS privilege
2) Go to Lib folder of WAS
3) Copy Jar files and License file via FTP utility (Upload as binary format)

License_1

Example of upload location

/WAS/WEB-INF/lib/nexacro-xapi-1.0.jar
/WAS/WEB-INF/lib/commons-logging-1.1.1jar
/WAS/WEB-INF/lib/nexacro14_server_license.xml

License_2

4) Restart the WAS

Adding nexacro14lib

Already Developed GUI source ( xfdl, xjs) in nexacro platform need to be changed to js file through Generating process.  
At that time of generating, nexacro14lib folder should be exist. 
This folder should be exist in ADL path in WAS path while developing and operating this system.
You need to add nexacro14lib into the folder which is created through entire Generating process in UX-Studio for first time.
1) Copying nexacro14lib folder in installation path of nexacro studio
nexacro14lib folder is located in installation folder of nexacro studio.
Installation path) C:\Program Files\nexacro\14

License_0

2) Copy nexacro14lib folder into Application path (ADL path) in WAS (Web Application Server).

xapi_ftp_5

Setting the nexacro studio

1) Select Tool> Option > HTML5 on nexacro studio.
2) Set location to compile. Set Local PC or Server as network Drive.
- screen capture of options on menu > Tools

xapi_ftp_3

- Item of Environment - General 
- Working Folder : Select the folder which is under development now
  Working Folder is not essential. If you don't set the working folder, automatically bring the 
  project path which is loaded.
- Generate Path : Select the path to generate as html5 format.

Test for Installation confirmation

Test for Server Installation confirmation

1) Upload Attached Installation test JSP file into context(Web) root of application
   (The location where JSP file to be executed)
2) Run Internet Explorer
3) Input Test page in the Address Bar (This means that the web path where Jsp file to be executed)
4) If the License information appears like below screen, the Installation is successful.

xapi_ftp_4

Test for verifying nexacro studio Installation

1) Make a temporary view on Form

xapi_ftp_6

xapi_ftp_5

2) Compiling the entire project by clicking Generate Application button which is necessary for first time.
   A. If you set compiling location to local pc, after compiling go to the location and then copy the compiled file into application which has been set in server. 
3) As below image, if you select QuickView button or Launch Project the URL setting window will appear. 
4) Input the application URL which has been set in Server in URL setting bar

xapi_ftp_8

5) If it runs as below, the setting of UX-Studio is successful.

xapi_ftp_7

Reference Details

By creating jsp file by copying below content and put the file on the WAS server then we can perform testing.

JSP source file of X-API Check

XApiCheck.jsp

<%@ page contentType="text/html; charset=UTF-8" %>
 
<html>
 <head>
 <title>JarInfo</title>
 <style>
 * { font-family: Verdana }
 </style>
 </head>
 <body>
 <pre>
 <%
 new com.nexacro.xapi.util.JarInfo().info(out);
 %>
 </pre>
 </body>
 </html>

Source for verifying environment information of WAS

Info.jsp

<%@ page import = "java.util.*" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%
out.println("==========================================================================<br/>");
out.println("Client User-Agent Information<br/>");
out.println("==========================================================================<br/>");
java.util.Enumeration headerNames = request.getHeaderNames();   
while(headerNames.hasMoreElements()) {   
   String headerName = headerNames.nextElement().toString();   
   String headerValue = request.getHeader(headerName);   
   out.println(headerName+"&nbsp;:&nbsp;"+headerValue);
}
out.println("<br/><br/>");
out.println("==========================================================================<br/>");
out.println("Server Environment Information<br/>");
out.println("==========================================================================<br/>");
out.println("SERVER_PROTOCOL : " + request.getProtocol() + "<br/>");   
out.println("SERVER_PORT : " + request.getServerPort() + "<br/>");    
out.println("REQUEST_METHOD : " + request.getMethod() + "<br/>");   
out.println("PATH_INFO : " + request.getPathInfo() + "<br/>");   
out.println("PATH_TRANSLATED : " + request.getPathTranslated() + "<br/>");   
out.println("SCRIPT_NAME : " + request.getServletPath() + "<br/>");   
out.println("DOCUMENT_ROOT : " + request.getRealPath("/") + "<br/>");   
out.println("QUERY_STRING : " + request.getQueryString() + "<br/>");   
out.println("REMOTE_HOST : " + request.getRemoteHost() + "<br/>");   
out.println("REMOTE_ADDR : " + request.getRemoteAddr() + "<br/>");   
out.println("AUTH_TYPE : " + request.getAuthType() + "<br/>");   
out.println("REMOTE_USER : " + request.getRemoteUser() + "<br/>");   
out.println("CONTENT_TYPE : " + request.getContentType() + "<br/>");   
out.println("CONTENT_LENGTH : " + request.getContentLength() + "<br/>");   
out.println("HTTP_ACCEPT : " + request.getHeader("Accept") + "<br/>");   
out.println("HTTP_USER_AGENT : " + request.getHeader("User-Agent") + "<br/>");   
out.println("HTTP_REFERER : " + request.getHeader("Referer") + "<br/>");   
out.println("CONTEXT_PATH : " + request.getContextPath() + "<br/>");
out.println("REQUEST_CHARACTER_ENCODE : " + request.getCharacterEncoding() + "<br/>");
out.println("RESPONSE_CHARACTER_ENCODE : " + response.getCharacterEncoding() + "<br/>");
%>