1 | The web.xml should contain the following parameters: |
---|
2 | |
---|
3 | The following parameters should be present in TomCat's web.xml |
---|
4 | (with their values -- directories and passwords |
---|
5 | depending on the server and set for lux16, lux17, corpus1 by the adminsitrator) |
---|
6 | |
---|
7 | <!-- ================= Trova (Annex, CQL Search) Configuration =============== --> |
---|
8 | <!-- |
---|
9 | *** Database configuration *** |
---|
10 | |
---|
11 | Note that Annex and Trova only need read rights to corpusstructure |
---|
12 | + annex DB. These database settings may be used by other apps. |
---|
13 | --> |
---|
14 | <resource-ref> |
---|
15 | <description>Corpusstructure DB Datasource</description> |
---|
16 | <res-ref-name>jdbc/CSDB</res-ref-name> |
---|
17 | <res-type>javax.sql.DataSource</res-type> |
---|
18 | <res-auth>Container</res-auth> |
---|
19 | </resource-ref> |
---|
20 | <context-param> |
---|
21 | <param-name>nl.mpi.db.corpusstructure</param-name> |
---|
22 | <param-value>java:comp/env/jdbc/CSDB</param-value> |
---|
23 | </context-param> |
---|
24 | <context-param> |
---|
25 | <param-name>nl.mpi.annot.search.searchDbURL</param-name> |
---|
26 | <param-value>jdbc:postgresql://lux16.mpi.nl:5432/annex</param-value> |
---|
27 | </context-param> |
---|
28 | <context-param> |
---|
29 | <param-name>nl.mpi.annot.search.searchDbUser</param-name> |
---|
30 | <param-value>annexreader</param-value> |
---|
31 | </context-param> |
---|
32 | |
---|
33 | <context-param> |
---|
34 | <param-name>nl.mpi.annot.search.searchDbPassword</param-name> |
---|
35 | <param-value>PUT PASSWORD HERE</param-value> |
---|
36 | </context-param> |
---|
37 | |
---|
38 | <context-param> |
---|
39 | <param-name>nl.mpi.annot.search.luceneDirectory</param-name> |
---|
40 | <param-value>/Users/olhsha/repositories/lucene.5</param-value> |
---|
41 | </context-param> |
---|
42 | |
---|
43 | <context-param> |
---|
44 | <param-name>nl.mpi.annexUrl</param-name> |
---|
45 | <param-value>http://lux16.mpi.nl/ds/annex/runLoader</param-value> |
---|
46 | </context-param> |
---|
47 | |
---|
48 | <!-- CQL search specific parameters --> |
---|
49 | |
---|
50 | <!-- lux16, lux17 <param-value>olhsha@mpi.nl</param-value> --> |
---|
51 | <!-- corpus1 <param-value>cqlservlet</param-value> --> |
---|
52 | <context-param> |
---|
53 | <param-name>nl.mpi.cqlsearch2.userId</param-name> |
---|
54 | <param-value>olhsha@mpi.nl</param-value> |
---|
55 | </context-param> |
---|
56 | |
---|
57 | |
---|
58 | <!-- lux16 <param-value>MPI457405#,MPI457406#</param-value> CGN, ESF--> |
---|
59 | <!-- lux17 <param-value>MPI86949#,MPI556280#</param-value> CGN, ESF --> |
---|
60 | <!-- corpus1 <param-value>MPI86949#,MPI1377055#,MPI214746#,MPI1296694#,MPI1259419#</param-value> |
---|
61 | CGN, ESF, IFA, childes, talkbank--> |
---|
62 | <context-param> |
---|
63 | <param-name>nl.mpi.cqlsearch2.searchableCorpora</param-name> |
---|
64 | <param-value>MPI86949#,MPI556280#</param-value> |
---|
65 | </context-param> |
---|
66 | |
---|
67 | <!-- make it 1 or 2 less than the number of cores of the machine where Tomcat running cql-search works, |
---|
68 | e.g. for 4 cores make it 3 threads--> |
---|
69 | <context-param> |
---|
70 | <param-name>nl.mpi.cqlsearch2.tierCollectionThreads</param-name> |
---|
71 | <param-value>3</param-value> |
---|
72 | </context-param> |
---|
73 | |
---|
74 | <!-- make it 1 or 2 less than the number of the cores of the server where the database is, |
---|
75 | e.g. for 4 cores make it 3 threads --> |
---|
76 | <context-param> |
---|
77 | <param-name>nl.mpi.cqlsearch2.queryThreads</param-name> |
---|
78 | <param-value>3</param-value> |
---|
79 | </context-param> |
---|
80 | |
---|
81 | <context-param> |
---|
82 | <param-name>eu.clarin.sru.server.database</param-name> |
---|
83 | <param-value>cqlsearch2</param-value> |
---|
84 | <!-- ds/cqlsearch2 for lux16, , ds/cqlsearch for lux17, ds/cqlsearch or cqlservlet.mpi.nl for corpus1.mpi.ml --> |
---|
85 | </context-param> |
---|
86 | |
---|
87 | <context-param> |
---|
88 | <param-name>eu.clarin.sru.server.host</param-name> |
---|
89 | <param-value>localhost</param-value> |
---|
90 | <!-- respectively: lux16.mpi.ml, lux17.mpi.nl, corpus1.mpi.ml --> |
---|
91 | </context-param> |
---|
92 | |
---|
93 | <context-param> |
---|
94 | <param-name>eu.clarin.sru.server.port</param-name> |
---|
95 | <param-value>8080</param-value> |
---|
96 | <!-- 80 for lux16.mpi.ml, lux17.mpi.nl, corpus1.mpi.ml --> |
---|
97 | </context-param> |
---|
98 | |
---|
99 | <context-param> |
---|
100 | <param-name>eu.clarin.sru.server.transport</param-name> |
---|
101 | <param-value>http</param-value> |
---|
102 | <!-- or https if your servlet is on https --> |
---|
103 | </context-param> |
---|
104 | |
---|
105 | <context-param> |
---|
106 | <param-name>eu.clarin.sru.server.numberOfRecords</param-name> |
---|
107 | <param-value>100</param-value> |
---|
108 | <!-- Default number of records used if the user does not assign maximumRecords in the request. --> |
---|
109 | <!-- A sysadmin may want to chnaged it but better no. --> |
---|
110 | </context-param> |
---|
111 | |
---|
112 | <context-param> |
---|
113 | <param-name>eu.clarin.sru.server.maximumRecords</param-name> |
---|
114 | <param-value>1000</param-value> |
---|
115 | <!-- If you think it is a too high limit make it less but not less than 250 pls!--> |
---|
116 | </context-param> |
---|
117 | |
---|
118 | <context-param> |
---|
119 | <param-name>eu.clarin.sru.server.allowOverrideMaximumRecords</param-name> |
---|
120 | <param-value>true</param-value> |
---|
121 | </context-param> |
---|
122 | |
---|
123 | |
---|