Fix so that registering servlets with a * suffix in the path works

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1134878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2011-06-12 07:26:14 +00:00
parent 9203a2f808
commit 4793edeb2e

View file

@ -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 {