[keycloak-dev] Generated standalone-ha.xml seems to be wrong

Thomas Darimont thomas.darimont at googlemail.com
Tue Apr 18 11:56:25 EDT 2017


Hello group,

I just build a keycloak distribution from current master (last commit
e54c1d7de)
and got an error when I tried to run the standalone-ha.xml variant via
bin/standalone.sh -c standalone-ha.xml.
It seems that the infinispan configuration is not generated correctly -
error shown below.

The standalone.xml variants works though.

Cheers,
Thomas

$ bin/standalone.sh -c standalone-ha.xml
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/tom/dev/playground/keycloak/keycloak-3.1.0.CR1-SNAPSHOT

  JAVA: /usr/lib/jvm/java-8-oracle/bin/java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M
-XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

16:50:24,683 INFO  [org.jboss.modules] (main) JBoss Modules version
1.5.1.Final
16:50:24,866 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
16:50:24,928 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049:
Keycloak 3.1.0.CR1-SNAPSHOT (WildFly Core 2.0.10.Final) starting
16:50:25,473 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:131)
[wildfly-controller-2.0.10.Final.jar:2.0.10.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:356)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
[wildfly-controller-2.0.10.Final.jar:2.0.10.Final]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_121]
Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[229,17]
Message: WFLYCTL0133: Missing required attribute(s): MODE
at
org.jboss.as.controller.parsing.ParseUtils.missingRequired(ParseUtils.java:161)
[wildfly-controller-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.parseReplicatedCache(InfinispanSubsystemXMLReader.java:366)
at
org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.parseContainer(InfinispanSubsystemXMLReader.java:195)
at
org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.readElement(InfinispanSubsystemXMLReader.java:75)
at
org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader.readElement(InfinispanSubsystemXMLReader.java:53)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
[staxmapper-1.2.0.Final.jar:1.2.0.Final]
at
org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
[staxmapper-1.2.0.Final.jar:1.2.0.Final]
at
org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
[wildfly-server-2.0.10.Final.jar:2.0.10.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
[staxmapper-1.2.0.Final.jar:1.2.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
[staxmapper-1.2.0.Final.jar:1.2.0.Final]
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
[wildfly-controller-2.0.10.Final.jar:2.0.10.Final]
... 3 more

16:50:25,475 FATAL [org.jboss.as.server] (Controller Boot Thread)
WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting.
See previous messages for details.
16:50:25,477 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server
shutdown has been requested.
16:50:25,492 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050:
Keycloak 3.1.0.CR1-SNAPSHOT (WildFly Core 2.0.10.Final) stopped in 11ms


More information about the keycloak-dev mailing list