Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-7495

BundleBasedKeycloakConfigResolver can't be configured

    Details

    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Using:

      <context-param>
          <param-name>keycloak.config.resolver</param-name>
          <param-value>org.keycloak.adapters.osgi.BundleBasedKeycloakConfigResolver</param-value>
      </context-param>
      

      in WEB-INF/web.xml gives me this:

      2018-06-01 16:23:43,348 ERROR {XNIO-17 task-42} [io.undertow.servlet.api.LoggingExceptionHandler.handleThrowable()] (LoggingExceptionHandler.java:80) : UT005023: Exception handling request to /war-keycloak/my
      java.lang.IllegalStateException: bundleContext must be set for BundleBasedKeycloakConfigResolver!
      	at org.keycloak.adapters.osgi.BundleBasedKeycloakConfigResolver.findDeployment(BundleBasedKeycloakConfigResolver.java:68) ~[232:org.keycloak.keycloak-osgi-adapter:4.0.0.Final-SNAPSHOT]
      	at org.keycloak.adapters.osgi.BundleBasedKeycloakConfigResolver.resolve(BundleBasedKeycloakConfigResolver.java:61) ~[232:org.keycloak.keycloak-osgi-adapter:4.0.0.Final-SNAPSHOT]
      	at org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:88) ~[225:org.keycloak.keycloak-adapter-core:4.0.0.Final-SNAPSHOT]
      	at org.keycloak.adapters.PreAuthActionsHandler.preflightCors(PreAuthActionsHandler.java:107) ~[225:org.keycloak.keycloak-adapter-core:4.0.0.Final-SNAPSHOT]
      	at org.keycloak.adapters.PreAuthActionsHandler.handleRequest(PreAuthActionsHandler.java:79) ~[225:org.keycloak.keycloak-adapter-core:4.0.0.Final-SNAPSHOT]
      	at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:68) ~[233:org.keycloak.keycloak-undertow-adapter:4.0.0.Final-SNAPSHOT]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) ~[31:io.undertow.core:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) [32:io.undertow.servlet:1.4.18.SP5-redhat-1]
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:330) [31:io.undertow.core:1.4.18.SP5-redhat-1]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812) [31:io.undertow.core:1.4.18.SP5-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      

      The problem is that BundleBasedKeycloakConfigResolver is not configured - neither bundleContext nor configLocation can be changed.

      I'll work on the fix.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                grgrzybek Grzegorz Grzybek
                Reporter:
                grgrzybek Grzegorz Grzybek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: