尝试在 wildfly 19 中设置 modcluster 时,wildfly 无法启动并出现以下错误。
Mar 19 05:00:08 l6383t standalone.sh: #033[0m#033[31m05:00:08,913 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=modcluster/proxy=mod-cluster-proxy-1 mod-cluster-proxy-2' are not available:
Mar 19 05:00:08 l6383t standalone.sh: org.wildfly.network.socket-binding.modcluster; Possible registration points for this capability:
Mar 19 05:00:08 l6383t standalone.sh: /socket-binding-group=*/socket-binding=*
Mar 19 05:00:08 l6383t standalone.sh: #033[0m#033[31m05:00:08,945 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
我的 mod 集群配置如下所示,
<subsystem xmlns="urn:jboss:domain:modcluster:5.0">
<proxy proxies="mod-cluster-proxy-1 mod-cluster-proxy-2" balancer="testitsys" advertise="false" advertise-socket="modcluster" excluded-contexts="invoker,jbossws,juddi,console" node-timeout="300" listener="ajp">
<dynamic-load-provider>
<load-metric type="cpu"/>
<load-metric type="heap"/>
</dynamic-load-provider>
</proxy>
</subsystem>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="http" port="${jboss.http.port:8080}"/>
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="jgroups-tcp" interface="public" port="7600"/>
<socket-binding name="jgroups-tcp-fd" interface="public" port="57600"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="mailhost.scania.com" port="25"/>
</outbound-socket-binding>
<outbound-socket-binding name="mod-cluster-proxy-1">
<remote-destination host="server1.domain.com" port="6666"/>
</outbound-socket-binding>
<outbound-socket-binding name="mod-cluster-proxy-2">
<remote-destination host="server2.domain.com" port="6666"/>
</outbound-socket-binding>
</socket-binding-group>
相同的配置在现有的 Jboss 7 EAP 中运行良好。尝试了互联网上可用的多种解决方案,但没有运气,有人可以帮我解决这个问题。
提前致谢