summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--branches/sca-java-2.0-M4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/branches/sca-java-2.0-M4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java b/branches/sca-java-2.0-M4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java
index 3253e6c026..4e32d8bcad 100644
--- a/branches/sca-java-2.0-M4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java
+++ b/branches/sca-java-2.0-M4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java
@@ -256,7 +256,9 @@ public class WebAppServletHost implements ServletHost {
List<String> oldServletURIs = new ArrayList<String>();
for (String oldServletURI : servlets.keySet()) {
if (oldServletURI.startsWith(oldContextPath)) {
- oldServletURIs.add(oldServletURI);
+ if (!oldServletURI.startsWith(contextPath)) {
+ oldServletURIs.add(oldServletURI);
+ }
}
}
for (String oldURI : oldServletURIs) {