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:
parent
9203a2f808
commit
4793edeb2e
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue