summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java b/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
index 643599afb8..467fcf8fbd 100644
--- a/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
+++ b/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
@@ -116,6 +116,11 @@ public class OSGiServletHost implements ServletHost, BundleActivator {
suri = contextPath + suri;
}
+ // The OSGi HTTP service doesn't use an aster for sub-paths so strip it off
+ if (suri.endsWith("/*")) {
+ suri = suri.substring(0, suri.length()-2);
+ }
+
// In a webapp just use the given path and ignore the host and port
// as they are fixed by the Web container
try {