[keycloak-user] Error 'secure-deployment' isn't an allowed element here when change wildfly config for keycloak

Erik Haugen erik.g.haugen at gmail.com
Thu Oct 18 03:33:03 EDT 2018


I'm trying secure a war file in Wildfly 14.0.1.Final with keycloak.

I followed the documentation given here : https://www.keycloak.org/docs/latest/securing_apps/index.html#_jboss_adapter

I installed the keycloak wildfly adapter 4.5.0. I'm trying to secure a war via the Adapter Subsystem and followed the documentation and modified the standalone.xml of the wildfly Keycloak subsystem definition
 <>
    <subsystem xmlns="urn:jboss:domain:keycloak:1.1"/>
        <secure-deployment name="simple-rest-0.0.1-SNAPSHOT.war">
           <realm>master</realm>
           <auth-server-url>https://keycloak.test.online/auth</auth-server-url>
           <ssl-required>none</ssl-required>
           <resource>account</resource>
           <credential name="secret">46a3091a-abc-9f9a-8895949d4cdf</credential>
        </secure-deployment>
    </subsystem> 
after adding this information to the standalone.xml, I try to start wildfly and get the following error message :

09:19:13,164 ERROR [stderr] (Controller Boot Thread) [Fatal Error] :422:11: The element type "profile" must be terminated by the matching end-tag "". 09:19:13,193 ERROR [org.jboss.as.controller] (Controller Boot Thread)

OPVDX001: Validation error in standalone.xml ----------------------------------- | | 413: | 414: | 415: | ^^^^ 'secure-deployment' isn't an allowed element here | | 416: master | 417: https://keycloak.test.online/auth <https://keycloak.test.online/auth> | 418: none | | The primary underlying error message was: | > ParseError at [row,col]:[415,13] | > Message: WFLYCTL0198: Unexpected element | > '{urn:jboss:domain:8.0}secure-deployment' encountered | |-------------------------------------------------------------------------------

09:19:13,195 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143) at org.jboss.as.server.ServerService.boot(ServerService.java:377) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372) at java.lang.Thread.run(Thread.java:748)

09:19:13,198 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

Any ideas what could be wrong?


More information about the keycloak-user mailing list