gpt4 book ai didi

java - org.jboss.msc.service.DuplicateServiceException : Service jboss.naming.context.java.module.auth.auth.ValidatorFactory已经

转载 作者:太空宇宙 更新时间:2023-11-04 06:14:34 24 4
gpt4 key购买 nike

我在 Wildfly 8.2 尝试运行standalone.sh 时遇到以下错误:

使用 Hibernate validator :

16:18:14,731 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-8) HV000001: Hibernate Validator 5.1.3.Final
16:18:14,798 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."auth-server.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."auth-server.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "auth-server.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
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]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.auth.auth.ValidatorFactory is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.bindServices(BeanValidationFactoryDeployer.java:103)
at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.bindFactoryToJndi(BeanValidationFactoryDeployer.java:81)
at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.deploy(BeanValidationFactoryDeployer.java:67)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more

如何重复使用相同的服务名称或“jdni-name”并重新注册以便可以使用相同的服务名称?

最佳答案

找到答案:

这是standalone.xml

<subsystem xmlns="urn:jboss:domain:keycloak:1.0"> 
<auth-server name="main-auth-server">
<enabled>true</enabled>
<web-context>auth</web-context>
</auth-server>
</subsystem>

这就是问题所在我必须把里面的一点去掉Keycloak 两天前升级到了新版本,他们还没有升级他们的文档。

希望这可以帮助人们尝试集成新的 KeyCloak 版本

关于java - org.jboss.msc.service.DuplicateServiceException : Service jboss.naming.context.java.module.auth.auth.ValidatorFactory已经,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28259787/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com