-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallation.txt
68 lines (53 loc) · 3.25 KB
/
installation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Installation Procedure:
- Install the library facebook-events-by-location in GIT mode
- Install Postgresql DB 9.5.4
- Run the DB script DBScript.sql using the following command :
/opt/PostgresPlus/9.5AS/bin/psql -w -U postgres -f "/PATH/TO/DBScript.sql" -p 5432
- Downlod WildFly 10.1.0.Final from http://wildfly.org/downloads/
- in wildfly-11.0.0.Final/standalone/configuration/stanalone.xml define the following :
- Add these drivers:
<driver name="postgresql" module="org.postgresql">
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
</driver>
<driver name="postgresql-driver" module="org.postgresql">
<driver-class>org.postgresql.Driver</driver-class>
</driver>
- Create the Datasource HappensNowDS as the following :
<datasource jta="false" jndi-name="java:/HappensNowDS" pool-name="HappensNowDS" enabled="true" use-java-context="true" use-ccm="false">
<connection-url>jdbc:postgresql://localhost:5432/happens-now</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>postgresql</driver>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>10</max-pool-size>
</pool>
<security>
<user-name>postgres</user-name>
<password>postgres</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<background-validation-millis>1</background-validation-millis>
</validation>
<statement>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
- If you want to allow remote access to your application go to : wildfly-11.0.0.Final/standalone/configuration/stanalone.xml
and apply the following change:
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
TO
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
- Extract the zip file postgresql.zip to the folder wildfly-11.0.0.Final/modules/system/layers/base/org
after extracting the zip file you should have this path wildfly-11.0.0.Final/modules/system/layers/base/org/postgresql/main
- Adjust the target logging folder in the file: happens-now/happens-now-backend/src/main/resources/log4j2.xml
- Review the configuration in the file happens-now/happens-now-backend/src/main/resources/configuration.properties
- If you want to use SSL with the login page, remove the comments around the block 'SSL Configuration' in
the file happens-now/happens-now-front/WebContent/WEB-INF/web.xml. After obtaining your SSL Certificate follow the
instructions in this website http://ni3jboss.blogspot.qa/2016/06/how-to-configure-ssl-in-wildfly-10.html.