无法在独立的Keycloak上部署Wildfly项目

时间:2016-10-26 14:45:53

标签: java jboss wildfly keycloak

我在Wildfly上开始独立的Keycloak。 接下来,我使用以下命令在我的独立keycloak文件夹(内部包含wildfly)中安装keycloak-wildfly-adapter:

cd bin
./jboss-cli.sh --file=adapter-install-offline.cli

然后我想用这个命令在服务器上部署我的应用程序:

mvn wildfly:deploy

我得到错误:

ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./ldap-portal: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
    at org.keycloak.adapters.KeycloakDeploymentBuilder.internalBuild(KeycloakDeploymentBuilder.java:107)
    at org.keycloak.adapters.KeycloakDeploymentBuilder.build(KeycloakDeploymentBuilder.java:135)
    at org.keycloak.adapters.undertow.KeycloakServletExtension.handleDeployment(KeycloakServletExtension.java:135)
    at io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:252)
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:152)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
    ... 6 more

16:11:31,347 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ldap-portal.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./ldap-portal" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
    Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I"}}
16:11:31,349 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ldap-portal.war" was rolled back with the following failure message: 
{"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./ldap-portal" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
    Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I"}}

有人可以解释一下为什么会发生这种情况以及如何解决这个问题吗?

0 个答案:

没有答案