You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:34:41 UTC

[sling-org-apache-sling-extensions-webconsolesecurityprovider] 04/06: SLING-3945 : NoClassDefFound if security provider starts without auth api available

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.extensions.webconsolesecurityprovider-1.1.4
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-extensions-webconsolesecurityprovider.git

commit 0b3c01d7ef47977d06dd7f9814891b932609b18f
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Sep 17 11:06:05 2014 +0000

    SLING-3945 : NoClassDefFound if security provider starts without auth api available
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/webconsolesecurityprovider@1625509 13f79535-47bb-0310-9956-ffa450edef68
---
 .../webconsolesecurityprovider/internal/ServicesListener.java  | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/sling/extensions/webconsolesecurityprovider/internal/ServicesListener.java b/src/main/java/org/apache/sling/extensions/webconsolesecurityprovider/internal/ServicesListener.java
index cb8663b..135d9f1 100644
--- a/src/main/java/org/apache/sling/extensions/webconsolesecurityprovider/internal/ServicesListener.java
+++ b/src/main/java/org/apache/sling/extensions/webconsolesecurityprovider/internal/ServicesListener.java
@@ -23,11 +23,7 @@ import java.util.Dictionary;
 import java.util.Hashtable;
 import java.util.concurrent.atomic.AtomicBoolean;
 
-import javax.jcr.Repository;
-
 import org.apache.felix.webconsole.WebConsoleSecurityProvider;
-import org.apache.sling.api.auth.Authenticator;
-import org.apache.sling.auth.core.AuthenticationSupport;
 import org.apache.sling.launchpad.api.StartupListener;
 import org.apache.sling.launchpad.api.StartupMode;
 import org.osgi.framework.BundleContext;
@@ -45,9 +41,9 @@ import org.osgi.service.cm.ManagedService;
  */
 public class ServicesListener implements StartupListener {
 
-    private static final String AUTH_SUPPORT_CLASS = AuthenticationSupport.class.getName();
-    private static final String AUTHENTICATOR_CLASS = Authenticator.class.getName();
-    private static final String REPO_CLASS = Repository.class.getName();
+    private static final String AUTH_SUPPORT_CLASS = "org.apache.sling.auth.core.AuthenticationSupport";
+    private static final String AUTHENTICATOR_CLASS = "org.apache.sling.api.auth.Authenticator";
+    private static final String REPO_CLASS = "javax.jcr.Repository";
 
     /** The bundle context. */
     private final BundleContext bundleContext;

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.