Просмотр исходного кода

Added webAppRootKey to all web.xml, made pathfinder webapp ready to run by Jetty plugin.

peter_backlund 16 лет назад
Родитель
Сommit
35391a9c49

+ 12
- 0
dddsample/external/pathfinder/pom.xml Просмотреть файл

@@ -18,5 +18,17 @@
18 18
       <artifactId>pathfinder-api</artifactId>
19 19
       <version>${project.version}</version>
20 20
     </dependency>
21
+    <dependency>
22
+      <groupId>org.springframework</groupId>
23
+      <artifactId>spring-web</artifactId>
24
+    </dependency>
21 25
   </dependencies>
26
+  <build>
27
+    <plugins>
28
+      <plugin>
29
+        <groupId>org.mortbay.jetty</groupId>
30
+        <artifactId>maven-jetty-plugin</artifactId>
31
+      </plugin>
32
+    </plugins>
33
+  </build>
22 34
 </project>

+ 5
- 9
dddsample/external/pathfinder/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -7,15 +7,6 @@
7 7
   <display-name>Pathfinder service</display-name>
8 8
 
9 9
   <listener>
10
-    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
11
-  </listener>
12
-
13
-  <context-param>
14
-    <param-name>log4jConfigLocation</param-name>
15
-    <param-value>classpath:log4j.properties</param-value>
16
-  </context-param>
17
-
18
-  <listener>
19 10
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
20 11
   </listener>
21 12
 
@@ -24,4 +15,9 @@
24 15
     <param-value>classpath:applicationContext.xml</param-value>
25 16
   </context-param>
26 17
 
18
+  <context-param>
19
+    <param-name>webAppRootKey</param-name>
20
+    <param-value>pathfinder</param-value>
21
+  </context-param>
22
+
27 23
 </web-app>

+ 1
- 0
dddsample/external/pathfinder/src/main/webapp/index.html Просмотреть файл

@@ -0,0 +1 @@
1
+This is the remote Pathfinder service. It exposes an RMI API.

+ 5
- 0
dddsample/external/reporting/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -15,6 +15,11 @@
15 15
     <param-value>classpath:log4j.properties</param-value>
16 16
   </context-param>
17 17
 
18
+  <context-param>
19
+    <param-name>webAppRootKey</param-name>
20
+    <param-value>reporting</param-value>
21
+  </context-param>
22
+
18 23
   <listener>
19 24
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
20 25
   </listener>

+ 5
- 0
dddsample/tracking/bookingui/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -15,6 +15,11 @@
15 15
     <param-value>classpath:log4j.properties</param-value>
16 16
   </context-param>
17 17
 
18
+  <context-param>
19
+    <param-name>webAppRootKey</param-name>
20
+    <param-value>bookingui</param-value>
21
+  </context-param>
22
+
18 23
   <listener>
19 24
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
20 25
   </listener>

+ 5
- 0
dddsample/tracking/core/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -15,6 +15,11 @@
15 15
     <param-value>classpath:log4j.properties</param-value>
16 16
   </context-param>
17 17
 
18
+  <context-param>
19
+    <param-name>webAppRootKey</param-name>
20
+    <param-value>core</param-value>
21
+  </context-param>
22
+
18 23
   <listener>
19 24
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
20 25
   </listener>