Author: cziegeler
Date: Mon Oct 17 12:08:18 2016
New Revision: 1765248

URL: http://svn.apache.org/viewvc?rev=1765248&view=rev
Log:
SLING-6168 : ServletContext is registered with wrong name

Modified:
    
sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java

Modified: 
sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java?rev=1765248&r1=1765247&r2=1765248&view=diff
==============================================================================
--- 
sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java
 (original)
+++ 
sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java
 Mon Oct 17 12:08:18 2016
@@ -109,7 +109,7 @@ public class SlingServletContext impleme
         Dictionary<String, Object> props = new Hashtable<String, Object>();
         props.put(Constants.SERVICE_DESCRIPTION, "Apache Sling 
ServletContext");
         props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
-        props.put("name", SlingMainServlet.class); // property to identify 
this context
+        props.put("name", SlingMainServlet.SERVLET_CONTEXT_NAME); // property 
to identify this context
         registration = bundleContext.registerService(
             ServletContext.class, this, props);
     }


Reply via email to