Você está na página 1de 14

Deployment document for web application

For
Customer ECGA
This document describes how to create cluster, server instance, changes to be done in
configuration files to refer ECGA details and deployment of web application. This will not
include describing how to export web application as WAR file from IDE.
1. Run script Create_Table_Script.txt to create table in both schema exporter and
domestic.
2. Run script for package PKG_ECGA_ENHANCEMENT in both schema exporter and
domestic..
3. Place ECGA.war in some location dedicated for Web related activity in application
server.
4. Place keyfile.txt in same location where you place ECGA.war
5. Explode ECGA.war using command mentioned below in command prompt.
jar cvf ECGA.war * --- Create a war file

jar xvf ECGA.war * ---- to extract

6. Navigate to the folder \WEB-INF\classes\com\mhd\ecga\properties\resources


i.
Modify IPConfig.properties to incorporate ECGA mail server details
a. OutgoingMailserver IP address/mail server name of ECGA domain
b. Port
- Port Number on which mail server run.
c. UserName
- Any Active directory user who has authority to send
email from mail server.
d. Password
- Encrypted password of authorized user.
e. FromAddress - Email Address from which mail has to be sent for invoice
generation
f. ToAddress,CcAddress,BccAddress Email addresses of recipients.
Note: Encryption can be done using encryption tool called JEncrypt. Double click jar
file, it pops up new window, enter username and password, click encrypt and copy result
using Copy Result button.

ii.

In case, if wish to change location of log file, modify path in log4j.property as


shown below

iii.

In LoginConfig.properties, do modify as below and this file is to maintain


oracle database configuration.

Exporter configuration details.


1.
2.
3.
4.
5.

Hostname where database is running for exporters schema


Port number of database.
SID
Schema Name
Encrypted Password for schema

Domestic configuration details.


6. Hostname where database is running for domestic schema
7. Port number of database.
8. SID
9. Schema Name
10. Encrypted Password for schema.

iv.

In WebsiteIntegration.properties, modify the below properties

1.
2.
3.
4.

Location of keyfile.txt
Location to store invoices pdf temporarily.
Username and password for duplicate invoice generation for exporters.
Username and password for duplicate invoice generation for domestic.

7. Create Clusters in weblogic.


i.
Login to weblogic console, expand Environment and click on cluster either in
left navigation or from Home Page(center)

ii.

Click lock and edit which would appear on top right and new button will get
enable for new cluster creation. Clicking on new button will open new
window thereby can change cluster name.

8. Create servers from weblogic console. Click on server and click new button in
server table(display in center)

i.

Click on new button, in new page enter server name, port number and select
cluster to which server is assign to. Then Click next and finish. In same way,
create one more server and assign to same cluster.

9. Start the servers. Before starting server, make sure node manager is up and
running. If it is down, will get error msg in console on starting server.
i.
Click on server

ii.

Click on control tab in the new page

iii.

Select the server and click on start button. By default, server will be selected
and only have to click on start button

If node manager is down, will get error message as shown below

Start node manager and then start server.

iv.

10.
i.

Click yes and see status will get change to Starting and finally to RUNNING

Deploy web application.


Click on deployment

ii.

Enter the path where ECGA.war file is located in application server and select
war file

iii.

Click next and select cluster .Click next and finish

iv.

On successful deployment, could find the application in deployment list with


state as Prepared as show below

11.
i.
ii.

Start Web application


Click on web application and click control
Select application and click start button. Take few minutes to start the
application. On success start will change state to Active.
12.
Repeat the same for war Website.war.
Note:This is just to simulate website integration testing from our side till final
integration is done by website resource. Once final integration is donewill remove
this from production server.
13.
Enter http://<hostname>:<port>/Website/MainMenu.jsp?
policyNo=<testpolicyno> in browser and check the page display as below

14.
Test deployment of ECGA application is success by clicking any of the below
forms
- Declaration of Business -Export
- Declaration of Business - Domestic
- Questionnaire on Buyer
- Buyers' List - Export
- Buyers' List Domestic
i.

Click on click Declaration of Business - Export and should display the pas
shown in image 1 or image 2.
Image 1

Você também pode gostar