annotate INSTALL @ 414:c65587869b3f

Updated INSTALL
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 13 Feb 2014 10:08:18 +0100
parents dfe537458afb
children 9e78c057d51e
rev   line source
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
1 Installation
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
2 ============
412
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
3 Allgemeine Informationen finden Sie in der README Datei
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
4
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
5 Die Installation der Serverkomponente erfordert folgende Vorraussetzungen:
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 * PostgreSQL-9.2/PostGIS-2.0 Datenbank inklusive Testdaten
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
8 * JBoss-AS
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
9
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 Datenbank
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 LADA Anwendung basiert auf einer PostgreSQL/PostGIS Datenbank in den
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
14 Versionen PostgreSQL 9.2/PostGIS 2.0.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
15 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
16 in eine PostgreSQL/PostGIS Datenbank importiert werden.
414
c65587869b3f Updated INSTALL
Raimund Renkert <rrenkert@intevation.de>
parents: 412
diff changeset
17 Hierzu sollte vorher ein Benutzer in der Datenbank angelegt werden. In der
c65587869b3f Updated INSTALL
Raimund Renkert <rrenkert@intevation.de>
parents: 412
diff changeset
18 folgenden Installationsanleitung wird davon ausgegangen, dass ein Benutzer
c65587869b3f Updated INSTALL
Raimund Renkert <rrenkert@intevation.de>
parents: 412
diff changeset
19 'lada' in der Datenbank existiert.
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
20 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
21 Verwaltungen in Deutschland, die vom BKG zur Verfügung gestellt werden.
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 Einrichtung der Datenbankverbindung im JBoss AS
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
24 -----------------------------------------------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
25 Die Datenbankverbindung wird im Application Server eingerichtet. Hierzu muss der
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
26 entsprechende Treiber zunächst als Modul eingefügt werden. Die folgenden
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27 Schritte setzen vorraus, dass der JBoss AS in dem Ordner
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
28 /opt/jboss-as-7.1.1-Final installiert ist.
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 1. Anlegen des Verzeichnisses und herunterladen der Treiber.
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 $cd /opt/jboss-as-7.1.1.Final/modules/org
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
33 $mkdir -p postgresql/main/
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34 $cd postgresql/main
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35 $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
36 $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
37
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
38 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
39 Datei module.xml mit folgendem Inhalt anlegen.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 <?xml version="1.0" encoding="UTF-8"?>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
42 <module xmlns="urn:jboss:module:1.0" name="org.postgresql">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
43 <resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
44 <resource-root path="postgresql-9.2-1002.jdbc4.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45 <resource-root path="postgis-jdbc-1.5.2.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46 </resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
47 <dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
48 <module name="javax.api"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
49 <module name="javax.transaction.api"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 </dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
51 </module>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
52
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
53 3. Einfügen der Hibernate-Spatial Komponenten.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
54
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
55 $cd /opt/jboss-as-7.1.1.Final/modules/org/hibernate/main
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
56 $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
57 $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
58
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
59 4. Eintragen der Hibernate-Spatial Komponenten in
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
60 /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
61
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
62 <resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
63 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
64 <resource-root path="hibernate-spatial-4.0.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 <resource-root path="jts-1.13.jar"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
66 </resources>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
67 <dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
68 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 <module name="org.postgresql"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
70 </dependencies>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
71
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
72 5. Einfügen des PostgreSQL Moduls als Treiber in die JBoss Konfiguration.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
73
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
74 In den Abschnitt <datasources> folgenden Block einfügen:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
75
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
76 <driver name="postgis" module="org.postgresql">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
77 <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
78 </driver>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
79
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 Nun kann man eine neue Datenbankverbindung mit dem neuen Treiber einrichten.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
82 Dazu verbindet man sich mit dem soeben angelegten Management-Nutzer mit der
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
83 Administrations-Webinterface unter der Adresse: http://localhost:9990
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
84
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
85 1. Datesources auswählen. Hier werden alle derzeit eingerichteten Datenquellen
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
86 angzeigt. Wir wollen eine neue einrichten. Hierzu
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
87 2. Oben rechts von "Runtime" auf "Profile" wechseln.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
88 3. "Add" wählen.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
89 4. Name: Lada, JNDI: java:/jboss/Lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
90 5. Treiber Wählen: postgis
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
91 6. Weitere Verbindungsparameter angeben.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
92 a) connection url: jdbc:postgresql_postGIS://localhost:5432/lada
414
c65587869b3f Updated INSTALL
Raimund Renkert <rrenkert@intevation.de>
parents: 412
diff changeset
93 b) Nutzer (lada)
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
94 c) Password
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 7.Da während dieser Einrichtung die Standard PostgreSQL Treiberklasse gewählt
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
97 wird, muss diese noch in der Datei
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
98 /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
99 geändert werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
100 Hierzu wird im Abschnitt <datasources> für die neu angelegte Datenquelle
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
101 <driver-class>org.postgresql.Driver</driver-class> gegen
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
102 <driver-class>org.postgis.DriverWrapper</driver-class> ausgetauscht.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
103
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
104 Installation der LADA Anwendung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
105 ===============================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
106 Zur Installation der LADA Anwendung müssen folgende Schritte unternommen werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
107
412
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
108 mvn clean compile package
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
109 cd /opt/jboss-as-7.1.1.Final/standalone/deployments
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
110 cp /path/where/the/war/file/is/lada.war .
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
111 touch lada.war.dodeploy
dfe537458afb Textpassagen zwischen README und INSTALL ausgetauscht.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 411
diff changeset
112
411
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
113 $cd /opt/jboss-as-7.1.1.Final/standalone/deployments
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
114 $cp /path/where/the/war/file/is/lada.war .
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
115 $touch lada.war.dodeploy
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
116
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
117 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
118 wird.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
119
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
120 Die Anwendung ist dann unter dem Pfad "/lada" (abhängig vom Archivnamen)
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
121 erreichbar.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
122
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
123 Konfiguration der LADA Anwendung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
124 ================================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
125 Die Konfigurationsdateien sind Dateien im JSON-Format und können an einer
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
126 beliebigen Stelle im System abgelegt werden, solang diese Dateien für den
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
127 Nutzer, mit dem JBoss-Server gestartet wird, gelesen werden kann.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
128
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
129 Bei Änderungen an der Konfigurationsdatei muss der Server nicht neu gestartet
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
130 werden. Es reicht ein erneutes Laden der Anwendung durch den Client.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
131 Vorbereitete und vollständige Konfigurationsdateien sind in dem Ordner
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
132 'config' zu finden.
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 Importer
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
135 --------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
136 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
137 Konfigurationsdatei "standalone.xml" abgelegt. Diese Datei findet sich im JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
138 Ordner ($JBOSSHOME/standalone/configuration/standalone.xml).
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 In dieser Datei wird der Pfad in Form einer Property abgelegt:
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 <server xmlns="urn:jboss:domain:1.2">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
143 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
144
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
145 <system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
146 <property name="de.intevation.lada.importconfig"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
147 value="/pfad/zur/konfigurations/datei/des/importers.json"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
148 </system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
149
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 </server>
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 Flexible Suche
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
154 --------------
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
155 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
156 Konfigurationsdatei "standalone.xml" abgelegt. Diese Datei findet sich im JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
157 Ordner ($JBOSSHOME/standalone/configuration/standalone.xml).
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 In dieser Datei wird der Pfad in Form einer Property abgelegt:
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 <server xmlns="urn:jboss:domain:1.2">
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
162 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
163
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
164 <system-properties>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
165 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
166 <property name="de.intevation.lada.sqlconfig"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
167 value="/pfad/zur/konfigurations/datei/der/abfragen.json"/>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
168 </system-properties>
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 ...
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
171 </server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
172
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
173 Einrichtung des Webservers (Apache)
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
174 ===================================
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
175 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
176 betreiben:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
177 * ldap_module: Authenitfizierung gegen den LDAP
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
178 * headers_module: Setzten der Header nach der Authenitifizierung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
179 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
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 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
182 laden zu können ist es notwendig den Server weiter zu konfigurieren.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
183
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
184 togglesebool httpd_can_network_connect
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
185 service httpd restart
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 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
188
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
189 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
190 bestimmte Adressen aktiv
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 Folgende Datei sollte unter "/etc/httpd/conf.d/lada.conf" angelegt werden:
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
193
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
194 <VirtualHost *:80>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
195 ServerAdmin webmaster@localhost
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
196 #ServerName dummy-host.example.com
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
197 ErrorLog logs/lada-error_log
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
198 CustomLog logs/lada-access_log common
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
199
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
200 # Set multiple Proxys
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
201 ProxyPass /lada/server http://localhost:8080/lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
202 ProxyPassReverse /lada/server http://localhost:8080/lada
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
203 </VirtualHost>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
204
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
205 Alles Anfragen an die Adresse "/lada/service" werden nun an den JBoss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
206 weitergeleitet.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
207
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
208 Authentifizierung
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
209
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
210 Die Authentifizierung geschieht gegen einen LDAP-Server.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
211
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
212 <Location /lada>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
213 AuthType basic
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
214 AuthName "test"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
215 AuthBasicProvider ldap
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
216 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
217 Require valid-user
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
218 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
219
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
220 <Location /lada/server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
221 RequestHeader unset Authorization
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
222 RequestHeader set X-LDAP-User "%{AUTHENTICATE_uid}e"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
223 RequestHeader set X-LDAP-Groups "%{AUTHENTICATE_memberof}e"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
224 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
225
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
226 Sofern gewünscht ist die Authentifizierung für Testzwecke zu deaktivieren muss
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
227 trotz allem die entsprechenden Header gesetzt werden, da der Server diese
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
228 derzeit erwartet.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
229
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
230 # Set Headers to simulate Authentification.
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
231 <Location /lada/server>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
232 RequestHeader set X-LDAP-User "mst_06010"
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
233 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
234 </Location>
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
235
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
236 Dokumentation
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
237 =============
f7fa401563ee Added INSTALL file.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
238 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
239 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)