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

LinkageError deploying oauth-client-cdi to WildFly 8.2.0.Final

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.1.Final
    • Component/s: None
    • Labels:
      None

      Description

      09:15:46,841 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45-internal]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45-internal]
      Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.keycloak.adapters.HttpClientBuilder.build(Lorg/keycloak/representations/adapters/config/AdapterConfig;)Lorg/apache/http/client/HttpClient;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/keycloak/servlet/ServletOAuthClientBuilder, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, org/keycloak/adapters/HttpClientBuilder, have different Class objects for the type org/apache/http/client/HttpClient used in the signature
      	at org.keycloak.servlet.ServletOAuthClientBuilder.build(ServletOAuthClientBuilder.java:45)
      	at org.keycloak.servlet.ServletOAuthClientBuilder.build(ServletOAuthClientBuilder.java:40)
      	at org.keycloak.example.oauth.AppContextListener.contextInitialized(AppContextListener.java:42)
      	at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
      	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	... 3 more
      
      09:15:46,856 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "oauth-client-cdi.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./oauth-client-cdi" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./oauth-client-cdi: Failed to start service
          Caused by: java.lang.LinkageError: loader constraint violation: when resolving method \"org.keycloak.adapters.HttpClientBuilder.build(Lorg/keycloak/representations/adapters/config/AdapterConfig;)Lorg/apache/http/client/HttpClient;\" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/keycloak/servlet/ServletOAuthClientBuilder, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, org/keycloak/adapters/HttpClientBuilder, have different Class objects for the type org/apache/http/client/HttpClient used in the signature"}}
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                stianst Stian Thorgersen
                Reporter:
                stianst Stian Thorgersen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: