0 Replies Latest reply on Apr 23, 2018 6:04 AM by cora.kwok

    Wildfly12 fail to set up high available.

    cora.kwok

      I follow the High Availability Guide to setup wildfly12, with the following error.

       

      2018-04-23 17:33:41,302 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)

      2018-04-23 17:33:41,306 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      2018-04-23 17:33:41,395 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) stopped in 79ms
      2018-04-23 17:42:05,513 INFO  [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
      2018-04-23 17:42:07,207 INFO  [org.jboss.msc] (main) JBoss MSC version 1.3.2.Final
      2018-04-23 17:42:07,235 INFO  [org.jboss.threads] (main) JBoss Threads version 2.3.1.Final
      2018-04-23 17:42:07,524 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) starting
      2018-04-23 17:42:12,363 WARN  [org.jboss.as.clustering.infinispan] (Controller Boot Thread) WFLYCLINF0004: The 'strategy' attribute of the 'eviction' element is no longer supported and will be ignored
      2018-04-23 17:42:12,364 WARN  [org.jboss.as.clustering.infinispan] (Controller Boot Thread) WFLYCLINF0004: The 'strategy' attribute of the 'eviction' element is no longer supported and will be ignored
      2018-04-23 17:42:12,366 WARN  [org.jboss.as.clustering.infinispan] (Controller Boot Thread) WFLYCLINF0004: The 'strategy' attribute of the 'eviction' element is no longer supported and will be ignored
      2018-04-23 17:42:12,367 WARN  [org.jboss.as.clustering.infinispan] (Controller Boot Thread) WFLYCLINF0004: The 'strategy' attribute of the 'eviction' element is no longer supported and will be ignored
      2018-04-23 17:42:12,370 WARN  [org.jboss.as.clustering.infinispan] (Controller Boot Thread) WFLYCLINF0004: The 'strategy' attribute of the 'eviction' element is no longer supported and will be ignored
      2018-04-23 17:42:15,108 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:15,276 INFO  [org.jboss.as.ejb3] (ServerService Thread Pool -- 17) WFLYEJB0486: Parameter 'default-clustered-sfsb-cache' was defined for the 'add' operation for resource '/subsystem=ejb3'. This parameter is deprecated and its previous behavior has been remapped to attribute 'default-sfsb-cache'. As a result the 'default-sfsb-cache' attribute has been set to '"clustered"' and the 'default-sfsb-passivation-disabled-cache' attribute has been set to '"simple"'.
      2018-04-23 17:42:15,299 INFO  [org.wildfly.security] (ServerService Thread Pool -- 19) ELY00001: WildFly Elytron version 1.2.2.Final
      2018-04-23 17:42:17,551 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 16) WFLYCTL0028: Attribute 'socket-binding' in the resource at address '/subsystem=jgroups/stack=udp/protocol=FD_SOCK' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,568 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 16) WFLYCTL0028: Attribute 'socket-binding' in the resource at address '/subsystem=jgroups/stack=tcp/protocol=FD_SOCK' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,592 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 16) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "jgroups"),
          ("channel" => "ee-server")
      ]) - failure description: "WFLYCTL0155: 'stack' may not be null"
      2018-04-23 17:42:17,717 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 34) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=undertow/server=default-server/ajp-listener=ajp' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,719 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 34) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,720 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 34) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,730 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 33) WFLYCTL0028: Attribute 'enable-statistics' in the resource at address '/subsystem=transactions' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      2018-04-23 17:42:17,763 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "WFLYCTL0193: Failed executing subsystem jgroups boot operations"
      2018-04-23 17:42:17,768 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("parallel-subsystem-boot") failed - address: ([]) - failure description: "\"WFLYCTL0193: Failed executing subsystem jgroups boot operations\""
      2018-04-23 17:42:17,799 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      2018-04-23 17:42:17,925 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) stopped in 68ms

       

       

      Below is the modified area of standalone-ha-ejb.html

      <subsystem xmlns="urn:jboss:domain:infinispan:2.0">

                  <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering.server">

                      <transport lock-timeout="60000"/>

                      <replicated-cache name="default" mode="SYNC" batching="true">

                           <locking isolation="REPEATABLE_READ"/>

                      </replicated-cache>

                  </cache-container>

                  <cache-container name="web" aliases="standard-session-cache" default-cache="repl"  module="org.wildfly.clustering.web.infinispan">

                      <transport lock-timeout="60000"/>

                      <replicated-cache name="repl" mode="ASYNC" batching="true">

            <file-store/>

            </replicated-cache>

                        <replicated-cache name="sso" mode="SYNC" batching="true"/>

           <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">

                          <file-store/>

                      </distributed-cache>

                  </cache-container>

                  <cache-container name="ejb" aliases="sfsb" default-cache="repl" module="org.jboss.as.clustering.ejb3.infinispan">

                      <transport lock-timeout="60000"/>

                      <replicated-cache name="repl" mode="ASYNC" batching="true">

          <eviction strategy="LRU" max-entries="10000"/>

         <file-store/>

        </replicated-cache>

        <replicated-cache name="remote-connector-client-mappings" mode="SYNC" batching="true"/>

            <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">

                <eviction strategy="LRU" max-entries="10000"/>

                <file-store/>

         </distributed-cache>

         </cache-container>

                

                  <cache-container name="hibernate" default-cache="local-query" module="org.hibernate">

                      <transport lock-timeout="60000"/>

                      <local-cache name="local-query">

             <transaction mode="NONE"/>

                          <eviction strategy="LRU" max-entries="10000"/>

           <expiration max-idle="100000"/>

                      </local-cache>

                      <invalidation-cache name="entity" mode="SYNC">

                          <transaction mode="NON_XA"/>

                          <eviction strategy="LRU" max-entries="10000"/>

             <expiration max-idle="100000"/>

                      </invalidation-cache>

                      <replicated-cache name="timestamps"  mode="ASYNC">

           <transaction mode="NONE"/>

          <eviction strategy="NONE"/>

         </replicated-cache>

                  </cache-container>

              </subsystem>

        <subsystem xmlns="urn:jboss:domain:iiop-openjdk:2.0">

                  <orb socket-binding="iiop"/>

                  <initializers security="identity" transactions="spec"/>

                  <security server-requires-ssl="false" client-requires-ssl="false"/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jca:5.0">

                  <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                  <bean-validation enabled="true"/>

                  <default-workmanager>

                      <short-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </short-running-threads>

                      <long-running-threads>

                          <core-threads count="50"/>

                          <queue-length count="50"/>

                          <max-threads count="50"/>

                          <keepalive-time time="10" unit="seconds"/>

                      </long-running-threads>

                  </default-workmanager>

                  <cached-connection-manager/>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>

              <subsystem xmlns="urn:jboss:domain:jgroups:6.0">

                  <channels default="ee">

                      <channel name="ee" stack="tcp" cluster="ejb"/>

                  </channels>

                  <stacks>

                      <stack name="udp">

                          <transport type="UDP" socket-binding="jgroups-udp"/>

                          <protocol type="PING"/>

                          <protocol type="MERGE3"/>

                          <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>

                          <protocol type="FD_ALL"/>

                          <protocol type="VERIFY_SUSPECT"/>

                          <protocol type="pbcast.NAKACK2"/>

                          <protocol type="UNICAST3"/>

                          <protocol type="pbcast.STABLE"/>

                          <protocol type="pbcast.GMS"/>

                          <protocol type="UFC"/>

                          <protocol type="MFC"/>

                          <protocol type="FRAG3"/>

                          <protocol type="RSVP"/>

                      </stack>

                      <stack name="tcp">

                          <transport type="TCP" socket-binding="jgroups-tcp"/>

                          <protocol type="org.jgroups.protocols.TCPPING">

                              <property name="initial_hosts">

                                  10.123.73.16[7600]

                              </property>

                              <property name="port_range">

                                  0

                              </property>

                          </protocol>

                          <protocol type="MERGE3"/>

                          <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>

                          <protocol type="FD_ALL"/>

                          <protocol type="VERIFY_SUSPECT"/>

                          <protocol type="pbcast.NAKACK2">

                              <property name="use_mcast_xmit">

                                  false

                              </property>

                          </protocol>

                          <protocol type="UNICAST3"/>

                          <protocol type="pbcast.STABLE"/>

                          <protocol type="pbcast.GMS"/>

           <protocol type="UFC"/>

                          <protocol type="MFC"/>

                          <protocol type="FRAG3"/>

                          <protocol type="RSVP"/>

                      </stack>

                  </stacks>

              </subsystem>