Skip to content

Commit 35391a9

Browse files
committed
Added webAppRootKey to all web.xml, made pathfinder webapp ready to run by Jetty plugin.
1 parent 7404a42 commit 35391a9

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

dddsample/external/pathfinder/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,17 @@
1818
<artifactId>pathfinder-api</artifactId>
1919
<version>${project.version}</version>
2020
</dependency>
21+
<dependency>
22+
<groupId>org.springframework</groupId>
23+
<artifactId>spring-web</artifactId>
24+
</dependency>
2125
</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>
2234
</project>

dddsample/external/pathfinder/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66

77
<display-name>Pathfinder service</display-name>
88

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-
189
<listener>
1910
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
2011
</listener>
@@ -24,4 +15,9 @@
2415
<param-value>classpath:applicationContext.xml</param-value>
2516
</context-param>
2617

18+
<context-param>
19+
<param-name>webAppRootKey</param-name>
20+
<param-value>pathfinder</param-value>
21+
</context-param>
22+
2723
</web-app>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the remote Pathfinder service. It exposes an RMI API.

dddsample/external/reporting/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<param-value>classpath:log4j.properties</param-value>
1616
</context-param>
1717

18+
<context-param>
19+
<param-name>webAppRootKey</param-name>
20+
<param-value>reporting</param-value>
21+
</context-param>
22+
1823
<listener>
1924
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
2025
</listener>

dddsample/tracking/bookingui/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<param-value>classpath:log4j.properties</param-value>
1616
</context-param>
1717

18+
<context-param>
19+
<param-name>webAppRootKey</param-name>
20+
<param-value>bookingui</param-value>
21+
</context-param>
22+
1823
<listener>
1924
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
2025
</listener>

dddsample/tracking/core/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<param-value>classpath:log4j.properties</param-value>
1616
</context-param>
1717

18+
<context-param>
19+
<param-name>webAppRootKey</param-name>
20+
<param-value>core</param-value>
21+
</context-param>
22+
1823
<listener>
1924
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
2025
</listener>

0 commit comments

Comments
 (0)