Развертывание этого уха приводит к ошибке: < /p>
Код: Выделить всё
ttp-wf | "jboss.deployment.subunit.\"test-ear-2024.3.0-SNAPSHOT.ear\".\"test-web-2024.3.0-SNAPSHOT.war\".undertow-deployment.UndertowDeploymentInfoService" => "Failed to start service
ttp-wf | Caused by: java.lang.IllegalStateException: ELY01148: A SecurityDomain has already been associated with the specified ClassLoader",
< /code>
Мы знаем, что он работал до Wildfly 26, после этого это было «Джакарта». Это может быть некоторым намеком.
[b] наложение: [/b]
OIDC
...
security-domain
security-domain
/html/internal/admin/*
role.admin
Код: Выделить всё
deployment-overlay add \
--name=configKeycloakAuth \
--content=/WEB-INF/web.xml=/entrypoint-wildfly-cli/config_oidc_web.xml \
--deployments=config-web-*.war \
--redeploy-affected
set configVersion=2024.1.0
/subsystem=elytron-oidc-client/secure-deployment=config-web-$configVersion.war:add( \
provider-url=$ttpWebKeycloakBaseUrl/realms/$ttpWebKeycloakRealm, \
client-id=$ttpWebKeycloakClientId, \
ssl-required=$ttpWebKeycloakSslRequired, \
confidential-port=$ttpWebKeycloakConfidentialPort, \
use-resource-role-mappings=$ttpWebKeycloakUseResourceRoleMappings \
)
Подробнее здесь: https://stackoverflow.com/questions/794 ... iated-with