jboss Keycloak未初始化MySQL数据库

0qx6xfy6  于 2022-11-08  发布在  Mysql
关注(0)|答案(1)|浏览(191)

我有这个工作,但由于其他问题决定从头开始安装。虽然复制我的配置以及Java驱动程序包1:1使用cp,它现在将不再创建SQL模式。我尝试了“手动”初始化选项,以及,但没有SQL文件正在生成。
我执行的从头开始的步骤是:
1.删除现有数据库
1.创建新数据库,授予相同得权限
1.移走keycloak目录
1.解压缩一个新的keycloak压缩包
1.复制并替换上一个示例中的keycloak配置
1.从上一个示例复制MySQL JDBC驱动程序包

2021-08-18 13:59:15,511 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service
org.wildfly.clustering.jgroups.channel.ee:
org.jboss.msc.service.StartException in service
org.wildfly.clustering.jgroups.channel.ee:
java.lang.IllegalStateException: java.lang.NullPointerException
        at org.wildfly.clustering.service@23.0.2.Final//org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:66)
        at org.wildfly.clustering.service@23.0.2.Final//org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTa
        ... 7 more
    Caused by: java.lang.NullPointerException
        at org.jgroups@4.2.11.Final//org.jgroups.protocols.UDP.dumpSocketInfo(UDP.java:556)
        at org.jgroups@4.2.11.Final//org.jgroups.protocols.UDP.createSockets(UDP.java:422)
        at org.jgroups@4.2.11.Final//org.jgroups.protocols.UDP.start(UDP.java:292)
        at org.jgroups@4.2.11.Final//org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:881)
        at org.jgroups@4.2.11.Final//org.jgroups.JChannel.startStack(JChannel.java:989)
        at org.jgroups@4.2.11.Final//org.jgroups.JChannel._preConnect(JChannel.java:853)
2021-08-18 13:59:21,682 INFO  [org.jboss.as.server] (Thread-1) WFLYSRV0272: Suspending server
2021-08-18 13:59:21,688 INFO  [org.jboss.as.ejb3] (Thread-1) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete
2021-08-18 13:59:21,692 INFO  [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal
2021-08-18 13:59:21,721 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4)
WFLYJCA0019: Stopped Driver service with driver-name = h2
2021-08-18 13:59:21,731 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-8) WFLYJCA0010: Unbound data source
[java:jboss/datasources/KeycloakDS]
2021-08-18 13:59:21,775 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007: Undertow HTTPS listener https
stopped, was bound to 192.168.0.115:8443
2021-08-18 13:59:21,775 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0007: Undertow AJP listener ajp
stopped, was bound to 192.168.0.115:8009
2021-08-18 13:59:21,776 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment
keycloak-server.war (runtime-name: keycloak-server.war) in 76ms
2021-08-18 13:59:21,774 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTP listener default
stopped, was bound to 192.168.0.115:8080
2021-08-18 13:59:21,782 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0004: Undertow 2.2.5.Final stopping
2021-08-18 13:59:21,797 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: Keycloak 15.0.1 (WildFly Core 15.0.1.Final) stopped
in 96ms

我试着重新创建了几次,但我无法找出与第一次安装时有什么不同。我使用的是独立HA操作模式。
会很感激你的意见。
我想我已经粘贴了相关的部分,但是如果它有任何帮助的话,这里有一个文件形式的server.log:http://hugz.io/ryxgd9/server.log

pw9qyyiw

pw9qyyiw1#

我能够解决这个问题,方法是用默认的standalone-ha.xml启动示例,只包括driver和datasource部分,然后再复制到其他修改过的部分。

相关问题