2 Replies Latest reply on Sep 5, 2019 2:29 PM by masummymesingh

    war file deployment error :java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter

    masummymesingh

      I trying to keyclock from javaee application.then i got following error.

      java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter

       

      please help me.

       

       

      2019-08-27 12:55:09,631 INFO  [com.ozguryazilim.telve.messagebus.TelveCamelContext] (MSC service thread 1-1) Apache Camel 2.22.2 (CamelContext: telve) started in 0.531 seconds

      2019-08-27 12:55:09,693 INFO  [com.ozguryazilim.telve.suggestion.SuggestionGroupRegistery] (MSC service thread 1-1) Registered SuggestionCode  : userGroup, false

      2019-08-27 12:55:09,693 INFO  [com.ozguryazilim.telve.suggestion.SuggestionGroupRegistery] (MSC service thread 1-1) Registered SuggestionCode  : Genel, false

      2019-08-27 12:55:09,787 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."telve-simple-app.war".undertow-deployment.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.deployment.unit."telve-simple-app.war".undertow-deployment.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.telve-simple-app.war" from Service Module Loader]

          at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:1088)

          at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:275)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)

          at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)

          at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

          at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)

          at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.telve-simple-app.war" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

          at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:806)

          ... 9 more

       

      2019-08-27 12:55:09,802 INFO  [com.ozguryazilim.telve.messagebus.CamelBootstrap] (ServerService Thread Pool -- 78) Camel CDI Context Init

      2019-08-27 12:55:09,802 INFO  [com.ozguryazilim.telve.messagebus.CamelBootstrap] (ServerService Thread Pool -- 78)  Poolfactory name com.ozguryazilim.telve.workarounds.TelveCamelThreadPoolFactory

      2019-08-27 12:55:09,818 INFO  [com.ozguryazilim.telve.messagebus.TelveCamelContext] (ServerService Thread Pool -- 78) Apache Camel 2.22.2 (CamelContext: telve) is starting

      2019-08-27 12:55:09,818 INFO  [com.ozguryazilim.telve.messagebus.TelveCamelContext] (ServerService Thread Pool -- 78) Total 11 routes, of which 11 are started

      2019-08-27 12:55:09,818 INFO  [com.ozguryazilim.telve.messagebus.TelveCamelContext] (ServerService Thread Pool -- 78) Apache Camel 2.22.2 (CamelContext: telve) started in 0.000 seconds

      2019-08-27 12:55:09,818 INFO  [com.ozguryazilim.telve.messagebus.CamelBootstrap] (ServerService Thread Pool -- 78)  Poolfactory name com.ozguryazilim.telve.workarounds.TelveCamelThreadPoolFactory

      2019-08-27 12:55:09,818 INFO  [com.ozguryazilim.telve.messagebus.CamelBootstrap] (ServerService Thread Pool -- 78) Camel CDI Context Started

      2019-08-27 12:55:09,865 INFO  [com.ozguryazilim.telve.messagebus.command.CommandScheduler] (ServerService Thread Pool -- 75) Active scheduled commands :

      2019-08-27 12:55:09,927 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "telve-simple-app.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"telve-simple-app.war\".undertow-deployment.UndertowDeploymentInfoService" => "java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module \"deployment.telve-simple-app.war\" from Service Module Loader]

          Caused by: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module \"deployment.telve-simple-app.war\" from Service Module Loader]"}}

      2019-08-27 12:55:10,083 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 43) WFLYSRV0010: Deployed "telve-simple-app.war" (runtime-name : "telve-simple-app.war")

      2019-08-27 12:55:10,083 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."telve-simple-app.war".undertow-deployment.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.telve-simple-app.war" from Service Module Loader]

      WFLYCTL0448: 1 additional services are down due to their dependencies being missing or failed

      2019-08-27 12:55:10,676 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server

      2019-08-27 12:55:10,676 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management

      2019-08-27 12:55:10,676 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

      2019-08-27 12:55:10,676 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final) started (with errors) in 36675ms - Started 671 of 840 services (3 services failed or missing dependencies, 329 services are lazy, passive or on-demand)

        • 1. Re: war file deployment error :java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter
          masummymesingh

          2019-09-06 00:23:43,104 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/SimpleAppDS]

          2019-09-06 00:23:43,105 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]

          2019-09-06 00:23:43,251 INFO  [org.jboss.ws.common.management] (MSC service thread 1-5) JBWS022052: Starting JBossWS 5.2.3.Final (Apache CXF 3.2.5.jbossorg-1)

          2019-09-06 00:23:49,513 WARN  [org.jboss.as.ee] (MSC service thread 1-3) WFLYEE0007: Not installing optional component org.keycloak.adapters.servlet.KeycloakOIDCFilter due to an exception (enable DEBUG log level to see the cause)

          2019-09-06 00:23:49,779 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."customer-portal-filter.war".undertow-deployment.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.deployment.unit."customer-portal-filter.war".undertow-deployment.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.customer-portal-filter.war" from Service Module Loader]

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:1088)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:275)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)

              at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)

              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)

              at java.lang.Thread.run(Thread.java:748)

          Caused by: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.customer-portal-filter.war" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:806)

              ... 9 more

           

          2019-09-06 00:23:50,174 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Estrella Galicia' 9.3.1.Final

          2019-09-06 00:23:50,589 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 75) WFLYCLINF0002: Started client-mappings cache from ejb container

          2019-09-06 00:23:50,705 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "customer-portal-filter.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"customer-portal-filter.war\".undertow-deployment.UndertowDeploymentInfoService" => "java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module \"deployment.customer-portal-filter.war\" from Service Module Loader]

              Caused by: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module \"deployment.customer-portal-filter.war\" from Service Module Loader]"}}

          2019-09-06 00:23:50,723 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 43) WFLYSRV0010: Deployed "customer-portal-filter.war" (runtime-name : "customer-portal-filter.war")

          2019-09-06 00:23:50,792 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

          WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."customer-portal-filter.war".undertow-deployment.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.keycloak.adapters.servlet.KeycloakOIDCFilter from [Module "deployment.customer-portal-filter.war" from Service Module Loader]

          WFLYCTL0448: 1 additional services are down due to their dependencies being missing or failed

          2019-09-06 00:23:50,893 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server

          2019-09-06 00:23:50,903 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9995/management

          2019-09-06 00:23:50,905 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9995

          2019-09-06 00:23:50,906 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 14.0.0.Final (WildFly Core 6.0.1.Final) started (with errors) in 21976ms - Started 426 of 615 services (3 services failed or missing dependencies, 330 services are lazy, passive or on-demand)