tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1244889 - /openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java
Date Thu, 16 Feb 2012 08:30:06 GMT
Author: rmannibucau
Date: Thu Feb 16 08:30:06 2012
New Revision: 1244889

URL: http://svn.apache.org/viewvc?rev=1244889&view=rev
Log:
webservice sub context needs to start with a /, if not simply add it

Modified:
    openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java

Modified: openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java?rev=1244889&r1=1244888&r2=1244889&view=diff
==============================================================================
--- openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java
(original)
+++ openejb/trunk/openejb/tomee/tomee-webservices/src/main/java/org/apache/tomee/webservices/TomcatWsRegistry.java
Thu Feb 16 08:30:06 2012
@@ -168,7 +168,11 @@ public class TomcatWsRegistry implements
                 root = '/' + root;
             }
             Context webAppContext = (Context) host.findChild(root);
-            addServlet(host, webAppContext, WEBSERVICE_SUB_CONTEXT + path, httpListener,
path, addresses);
+            if (WEBSERVICE_SUB_CONTEXT.startsWith("/")) {
+                addServlet(host, webAppContext, WEBSERVICE_SUB_CONTEXT + path, httpListener,
path, addresses);
+            } else {
+                addServlet(host, webAppContext, '/' + WEBSERVICE_SUB_CONTEXT + path, httpListener,
path, addresses);
+            }
         }
         return addresses;
     }



Mime
View raw message