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

Extension REST demo is not working on 4.8.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.8.3.Final
    • Fix Version/s: 4.8.3.Final
    • Component/s: Quickstarts
    • Labels:
      None
    • Environment:
      • Keycloak 4.8.3
      • Java jdk-10.0.1
      • Windows 10
      • Embeded H2 database
    • Steps to Reproduce:
      Hide

      1. Clone repository on 4.8.3 tag
      2. Build Rest example project (keycloak-examples-providers-rest)
      3. Deploy following instructions on website (https://github.com/keycloak/keycloak/tree/master/examples/providers/rest)

      Show
      1. Clone repository on 4.8.3 tag 2. Build Rest example project (keycloak-examples-providers-rest) 3. Deploy following instructions on website ( https://github.com/keycloak/keycloak/tree/master/examples/providers/rest )
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      The REST example in on the GitHub is not working on clean installation.
      On startup following error occure:

      12:00:04,444 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC000001: Failed to start service jboss.deployment.unit."keycloak-server.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."keycloak-server.war".undertow-deployment: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
              at java.base/java.lang.Thread.run(Thread.java:844)
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)
      Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:166)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2757)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:363)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:276)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:88)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:119)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:300)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:140)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:583)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:554)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
              at io.undertow.servlet@2.0.13.Final//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:596)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
              at org.wildfly.extension.undertow@14.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
              ... 8 more
      Caused by: java.util.ServiceConfigurationError: org.keycloak.services.resource.RealmResourceProviderFactory: Provider org.keycloak.examples.rest.HelloResourceProviderFactory not found
              at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
              at java.base/java.util.ServiceLoader.access$200(ServiceLoader.java:390)
              at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1211)
              at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1220)
              at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
              at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
              at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.provider.DefaultProviderLoader.load(DefaultProviderLoader.java:60)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.provider.ProviderManager.load(ProviderManager.java:92)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.services.DefaultKeycloakSessionFactory.loadFactories(DefaultKeycloakSessionFactory.java:214)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.services.DefaultKeycloakSessionFactory.init(DefaultKeycloakSessionFactory.java:78)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.services.resources.KeycloakApplication.createSessionFactory(KeycloakApplication.java:331)
              at org.keycloak.keycloak-services@4.8.3.Final//org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:118)
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
              at org.jboss.resteasy.resteasy-jaxrs@3.6.1.Final//org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:154)
              ... 31 more
      
      12:00:04,448 INFO  [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bozic.eugen Eugen Božić
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: