annotate INSTALL @ 411:f7fa401563ee

Added INSTALL file.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 20 Jan 2014 12:43:55 +0100
parents
children dfe537458afb
rev   line source
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
1 Einrichtung der Anwendung LADA
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
2 ==============================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
3
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
4 Dies ist die Prototypversion der Serverkomponente für die Anwendung LADA zur
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
5 Verarbeitung und Erfassung von Labordaten.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
6
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
7 Die Software bietet grundlegende Funktionalität zur Erfassung und Bearbeitung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
8 von Messdaten. Weitere Informationen finden sich auf der Projektwebseite unter
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
9 der Adresse:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
10
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
11 https://wald.intevation.org/projects/lada/
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
12
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
13 Die Software entstand im Rahmen einer Software Entwicklung durch die
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
14 Intevation GmbH im Auftrag des Bundesamt für Strahlenschutz im Jahre 2013.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
15
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
16 Lizenz
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
17 ------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
18 Die Software unter der GNU GPL v>=3 Lizenz verfügbar. Details siehe die Datei
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
19 COPYING.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
20
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21 Quelltext
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
22 ---------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
23 Die Quelldateien lassen sich wie folgt auschecken:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
24 hg clone https://scm.wald.intevation.org/hg/lada/lada-server
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
25
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
26
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27 Installation
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
28 ============
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
29
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
30 Die Installation der Serverkomponente erfordert folgende Vorraussetzungen:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
31
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
32 * PostgreSQL-9.2/PostGIS-2.0 Datenbank inklusive Testdaten
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
33 * JBoss-AS
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
36 Datenbank
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
37 ---------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
38 Die LADA Anwendung basiert auf einer PostgreSQL/PostGIS Datenbank in den
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
39 Versionen PostgreSQL 9.2/PostGIS 2.0.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40 Beipieldaten sind in dem Datenbankdump lada-db.zip verfügbar und können
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 in eine PostgreSQL/PostGIS Datenbank importiert werden.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
42 Der dadurch verfügbare Testdatensatz enthält zusätzlich Daten zu Gemeinden und
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
43 Verwaltungen in Deutschland, die vom BKG zur Verfügung gestellt werden.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
44
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45 Einrichtung der Datenbankverbindung im JBoss AS
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46 -----------------------------------------------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
47 Die Datenbankverbindung wird im Application Server eingerichtet. Hierzu muss der
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
48 entsprechende Treiber zunächst als Modul eingefügt werden. Die folgenden
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
49 Schritte setzen vorraus, dass der JBoss AS in dem Ordner
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 /opt/jboss-as-7.1.1-Final installiert ist.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
51
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
52 1. Anlegen des Verzeichnisses und herunterladen der Treiber.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
53
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
54 $cd /opt/jboss-as-7.1.1.Final/modules/org
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
55 $mkdir -p postgresql/main/
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
56 $cd postgresql/main
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
57 $curl -O "http://jdbc.postgresql.org/download/postgresql-9.2-1002.jdbc4.jar"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
58 $curl -O "http://www.hibernatespatial.org/repository/org/postgis/postgis-jdbc/1.5.2/postgis-jdbc-1.5.2.jar"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
59
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
60 2. In dem Ordner /opt/jboss-as-7.1.1.Final/modules/org/postgresql/main/ eine
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
61 Datei module.xml mit folgendem Inhalt anlegen.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
62
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
63 <?xml version="1.0" encoding="UTF-8"?>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
64 <module xmlns="urn:jboss:module:1.0" name="org.postgresql">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 <resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
66 <resource-root path="postgresql-9.2-1002.jdbc4.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
67 <resource-root path="postgis-jdbc-1.5.2.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
68 </resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 <dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
70 <module name="javax.api"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
71 <module name="javax.transaction.api"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
72 </dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
73 </module>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
74
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
75 3. Einfügen der Hibernate-Spatial Komponenten.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
76
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
77 $cd /opt/jboss-as-7.1.1.Final/modules/org/hibernate/main
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
78 $curl -O "http://www.hibernatespatial.org/repository/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.jar"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
79 $curl -O "http://repo1.maven.org/maven2/com/vividsolutions/jts/1.13/jts-1.13.jar"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
80
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
81 4. Eintragen der Hibernate-Spatial Komponenten in
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
82 /opt/jboss-as-7.1.1.Final/modules/org/hibernate/main/module.xml
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
83
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
84 <resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
85 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
86 <resource-root path="hibernate-spatial-4.0.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
87 <resource-root path="jts-1.13.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
88 </resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
89 <dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
90 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
91 <module name="org.postgresql"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
92 </dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
93
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
94 5. Einfügen des PostgreSQL Moduls als Treiber in die JBoss Konfiguration.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
95
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
96 In den Abschnitt <datasources> folgenden Block einfügen:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
97
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
98 <driver name="postgis" module="org.postgresql">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
99 <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
100 </driver>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
101
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
102
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
103 Nun kann man eine neue Datenbankverbindung mit dem neuen Treiber einrichten.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
104 Dazu verbindet man sich mit dem soeben angelegten Management-Nutzer mit der
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
105 Administrations-Webinterface unter der Adresse: http://localhost:9990
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
106
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
107 1. Datesources auswählen. Hier werden alle derzeit eingerichteten Datenquellen
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
108 angzeigt. Wir wollen eine neue einrichten. Hierzu
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
109 2. Oben rechts von "Runtime" auf "Profile" wechseln.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
110 3. "Add" wählen.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
111 4. Name: Lada, JNDI: java:/jboss/Lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
112 5. Treiber Wählen: postgis
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
113 6. Weitere Verbindungsparameter angeben.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
114 a) connection url: jdbc:postgresql_postGIS://localhost:5432/lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
115 b) Nutzer
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
116 c) Password
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
117
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
118 7.Da während dieser Einrichtung die Standard PostgreSQL Treiberklasse gewählt
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
119 wird, muss diese noch in der Datei
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
120 /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
121 geändert werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
122 Hierzu wird im Abschnitt <datasources> für die neu angelegte Datenquelle
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
123 <driver-class>org.postgresql.Driver</driver-class> gegen
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
124 <driver-class>org.postgis.DriverWrapper</driver-class> ausgetauscht.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
125
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
126 Installation der LADA Anwendung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
127 ===============================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
128 Zur Installation der LADA Anwendung müssen folgende Schritte unternommen werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
129
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
130 $cd /opt/jboss-as-7.1.1.Final/standalone/deployments
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
131 $cp /path/where/the/war/file/is/lada.war .
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
132 $touch lada.war.dodeploy
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
133
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
134 Zum Aktualisieren der Anwendung genügt es, wenn die lada.war Datei aktualisiert
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
135 wird.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
136
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
137 Die Anwendung ist dann unter dem Pfad "/lada" (abhängig vom Archivnamen)
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
138 erreichbar.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
139
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
140 Konfiguration der LADA Anwendung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
141 ================================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
142 Die Konfigurationsdateien sind Dateien im JSON-Format und können an einer
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
143 beliebigen Stelle im System abgelegt werden, solang diese Dateien für den
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
144 Nutzer, mit dem JBoss-Server gestartet wird, gelesen werden kann.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
145
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
146 Bei Änderungen an der Konfigurationsdatei muss der Server nicht neu gestartet
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
147 werden. Es reicht ein erneutes Laden der Anwendung durch den Client.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
148 Vorbereitete und vollständige Konfigurationsdateien sind in dem Ordner
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
149 'config' zu finden.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
150
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
151 Importer
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
152 --------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
153 Der Pfad an dem diese Konfigurationsdatei zu finden ist wird in einer JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
154 Konfigurationsdatei "standalone.xml" abgelegt. Diese Datei findet sich im JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
155 Ordner ($JBOSSHOME/standalone/configuration/standalone.xml).
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
156
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
157 In dieser Datei wird der Pfad in Form einer Property abgelegt:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
158
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
159 <server xmlns="urn:jboss:domain:1.2">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
160 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
161
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
162 <system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
163 <property name="de.intevation.lada.importconfig"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
164 value="/pfad/zur/konfigurations/datei/des/importers.json"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
165 </system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
166
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
167 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
168 </server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
169
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
170 Flexible Suche
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
171 --------------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
172 Der Pfad an dem diese Konfigurationsdatei zu finden ist wird in einer JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
173 Konfigurationsdatei "standalone.xml" abgelegt. Diese Datei findet sich im JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
174 Ordner ($JBOSSHOME/standalone/configuration/standalone.xml).
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
175
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
176 In dieser Datei wird der Pfad in Form einer Property abgelegt:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
177
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
178 <server xmlns="urn:jboss:domain:1.2">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
179 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
180
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
181 <system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
182 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
183 <property name="de.intevation.lada.sqlconfig"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
184 value="/pfad/zur/konfigurations/datei/der/abfragen.json"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
185 </system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
186
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
187 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
188 </server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
189
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
190 Einrichtung des Webservers (Apache)
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
191 ===================================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
192 Die folgenden Module des Apache Webserver sind nötig, um die LADA Anwendung zu
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
193 betreiben:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
194 * ldap_module: Authenitfizierung gegen den LDAP
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
195 * headers_module: Setzten der Header nach der Authenitifizierung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
196 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
197
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
198 Damit der Client eine Verbindung zu dem Server aufbauen kann, um von dort Daten
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
199 laden zu können ist es notwendig den Server weiter zu konfigurieren.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
200
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
201 togglesebool httpd_can_network_connect
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
202 service httpd restart
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
203
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
204 Dies erlaubt dem Apache grundsätzlich sich an einen anderen Dienst zu verbinden.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
205
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
206 Nun muss noch ein Reverse-Proxy eingerichtet werden. Dieser ist nur für
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
207 bestimmte Adressen aktiv
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
208
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
209 Folgende Datei sollte unter "/etc/httpd/conf.d/lada.conf" angelegt werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
210
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
211 <VirtualHost *:80>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
212 ServerAdmin webmaster@localhost
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
213 #ServerName dummy-host.example.com
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
214 ErrorLog logs/lada-error_log
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
215 CustomLog logs/lada-access_log common
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
216
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
217 # Set multiple Proxys
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
218 ProxyPass /lada/server http://localhost:8080/lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
219 ProxyPassReverse /lada/server http://localhost:8080/lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
220 </VirtualHost>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
221
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
222 Alles Anfragen an die Adresse "/lada/service" werden nun an den JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
223 weitergeleitet.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
224
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
225 Authentifizierung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
226
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
227 Die Authentifizierung geschieht gegen einen LDAP-Server.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
228
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
229 <Location /lada>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
230 AuthType basic
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
231 AuthName "test"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
232 AuthBasicProvider ldap
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
233 AuthLDAPURL "ldap://ike.polyhedra.intevation.de:389/cn=users,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de?uid,memberof??(&(objectClass=inetOrgPerson)(memberOf=*))"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
234 Require valid-user
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
235 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
236
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
237 <Location /lada/server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
238 RequestHeader unset Authorization
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
239 RequestHeader set X-LDAP-User "%{AUTHENTICATE_uid}e"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
240 RequestHeader set X-LDAP-Groups "%{AUTHENTICATE_memberof}e"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
241 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
242
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
243 Sofern gewünscht ist die Authentifizierung für Testzwecke zu deaktivieren muss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
244 trotz allem die entsprechenden Header gesetzt werden, da der Server diese
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
245 derzeit erwartet.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
246
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
247 # Set Headers to simulate Authentification.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
248 <Location /lada/server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
249 RequestHeader set X-LDAP-User "mst_06010"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
250 RequestHeader set X-LDAP-Groups "cn=Imis_world,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de;cn=mst_06010,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de;cn=mst_11010,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
251 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
252
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
253 Dokumentation
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
254 =============
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
255 Eine HTML-Dokumenation des Quellcodes(Javadoc) ist in dem Ordner 'doc' hinterlegt und
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
256 kann über einen Webserver (z.B. Apache WebServer) bereitgestellt werden.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)