-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
80 lines (64 loc) · 2.51 KB
/
README
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
69
70
71
72
73
74
75
76
77
78
79
80
This is OpenTox Policy service.
1. Compile
1.1. Make sure the following entry is configured in your .m2/settings.xml
<!-- Start config -->
<profiles>
...
<profile>
<id>policy-test</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<openssouser>user</openssouser>
<openssopassword>The password</openssopassword>
<openssoservice>URI of the The OpenSSO/OpenAM service</openssoservice>
</properties>
</profile>
</profiles>
<!-- End config-->
1.2. Build by
>mvn package
The output looks like:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Policy service
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 1 resource
[....
[INFO] Packaging webapp
[INFO] Assembling webapp[Pol] in [{your-dir}/Pol-0.0.3-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources[{your-dir}/Pol/src/main/webapp]
[INFO] Webapp assembled in[516 msecs]
[INFO] Building war: {your-dir}/target/Pol-0.0.3-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28 seconds
[INFO] Finished at: Wed Jul 20 12:22:19 EEST 2011
[INFO] Final Memory: 19M/220M
[INFO] ------------------------------------------------------------------------
The .war file will be in the target folder.
2. Run by
>mvn tomcat:run
3. Or deploy into a servlet container
3.1. MySQL
The Policy service requires MySQL and existing 'pol' database :
CREATE DATABASE Pol;
Create database table(s) as in https://github.com/vedina/Pol/blob/master/src/main/resources/org/opentox/pol/db.sql
3.2. Configuration
If the Pol.war was not compiled with the correct settings, as described in 1), these could be changed after deployment:
Edit the following file:
{tomcat}/webapps/Pol/WEB-INF/classes/org/opentox/pol/admin.properties
# Start admin.properties
# Admin account that was chosen at installation of OpenAM. Used to connect to localhost only.
user=[OPENSSO/OPENAM ADMIN USER]
pw=[YOUR OPENSSO/OPENAM PASSWORD]
# Give the base URI of the deployed OpenAM service here, e.g. http://myhost.mydomain:8180/opensso
host=[OPENSSO/OPENAM URI]
# End admin.properties