WildFly 10、JGroups 和 EC2
WildFly 10, JGroups and EC2
我正在尝试 运行 使用 EC2 中的 HA 配置文件的 WildFly 10,但出现以下错误:
05:03:28,308 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=jgroups/stack=tcp/protocol=FD_SOCK' are not available:
[Server:server-one] org.wildfly.network.socket-binding.jgroups-tcp-fd; There are no known registration points which can provide this capability.
[Server:server-one] 05:03:28,310 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=jgroups/stack=tcp/transport=TCP' are not available:
[Server:server-one] org.wildfly.network.socket-binding.jgroups-tcp; There are no known registration points which can provide this capability.
我的 JGroups 配置如下所示
<subsystem xmlns="urn:jboss:domain:jgroups:4.0">
<channels default="ee">
<channel name="ee" stack="tcp"/>
</channels>
<stacks>
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<protocol type="S3_PING">
<property name="access_key">accesskey</property>
<property name="secret_access_key">secretkey</property>
<property name="location">bucketname</property>
</protocol>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2">
<property name="use_mcast_xmit">false</property>
<property name="use_mcast_xmit_req">false</property>
</protocol>
<protocol type="UNICAST3"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="MFC"/>
<protocol type="FRAG2"/>
<protocol type="RSVP"/>
</stack>
</stacks>
</subsystem>
有谁知道There are no known registration points which can provide this capability
是什么意思?
原来我弄错了套接字绑定。我正在使用具有完整 ha-sockets 套接字绑定的 ha 配置文件,如下所示:
<server-groups>
<server-group name="main-server-group" profile="ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/> <!-- THIS IS BROKEN -->
<deployments>
<deployment name="activemq-rar" runtime-name="activemq-rar"/>
<deployment name="hawtio.war" runtime-name="hawtio.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
</server-group>
</server-groups>
一旦我修复了套接字绑定,错误就消失了:
<server-groups>
<server-group name="main-server-group" profile="ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="ha-sockets"/> <!-- THIS IS FIXED -->
<deployments>
<deployment name="activemq-rar" runtime-name="activemq-rar"/>
<deployment name="hawtio.war" runtime-name="hawtio.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
</server-group>
</server-groups>
我也有类似的问题。但是,问题不在 <server-group />
,而是我的主机。
我创建了一个初始主机以使用 server-group 中已经存在的配置文件 full-ha
和 full-ha-sockets
。之后,我使用配置文件 ha
和 ha-sockets
创建一个新的 server-group 并将此主机移动到这个新的 server-group.
问题?我的主机使用配置文件 ha
,但使用 full-ha-sockets
而不是 ha-sockets
。我进行了设置以仅使用 ha-sockets
来使用 EJB Remote,当我尝试在 EJB 中为 远程出站连接 调用远程方法时遇到同样的错误:
There are no known registration points which can provide this capability
我以为我的主机正在使用 ha-sockets
。所以,我让主机使用 ha-sockets
并且错误消失了。我浪费了很多时间才发现这个错误。
我正在尝试 运行 使用 EC2 中的 HA 配置文件的 WildFly 10,但出现以下错误:
05:03:28,308 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=jgroups/stack=tcp/protocol=FD_SOCK' are not available:
[Server:server-one] org.wildfly.network.socket-binding.jgroups-tcp-fd; There are no known registration points which can provide this capability.
[Server:server-one] 05:03:28,310 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=jgroups/stack=tcp/transport=TCP' are not available:
[Server:server-one] org.wildfly.network.socket-binding.jgroups-tcp; There are no known registration points which can provide this capability.
我的 JGroups 配置如下所示
<subsystem xmlns="urn:jboss:domain:jgroups:4.0">
<channels default="ee">
<channel name="ee" stack="tcp"/>
</channels>
<stacks>
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<protocol type="S3_PING">
<property name="access_key">accesskey</property>
<property name="secret_access_key">secretkey</property>
<property name="location">bucketname</property>
</protocol>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2">
<property name="use_mcast_xmit">false</property>
<property name="use_mcast_xmit_req">false</property>
</protocol>
<protocol type="UNICAST3"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="MFC"/>
<protocol type="FRAG2"/>
<protocol type="RSVP"/>
</stack>
</stacks>
</subsystem>
有谁知道There are no known registration points which can provide this capability
是什么意思?
原来我弄错了套接字绑定。我正在使用具有完整 ha-sockets 套接字绑定的 ha 配置文件,如下所示:
<server-groups>
<server-group name="main-server-group" profile="ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/> <!-- THIS IS BROKEN -->
<deployments>
<deployment name="activemq-rar" runtime-name="activemq-rar"/>
<deployment name="hawtio.war" runtime-name="hawtio.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
</server-group>
</server-groups>
一旦我修复了套接字绑定,错误就消失了:
<server-groups>
<server-group name="main-server-group" profile="ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="ha-sockets"/> <!-- THIS IS FIXED -->
<deployments>
<deployment name="activemq-rar" runtime-name="activemq-rar"/>
<deployment name="hawtio.war" runtime-name="hawtio.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
</server-group>
</server-groups>
我也有类似的问题。但是,问题不在 <server-group />
,而是我的主机。
我创建了一个初始主机以使用 server-group 中已经存在的配置文件 full-ha
和 full-ha-sockets
。之后,我使用配置文件 ha
和 ha-sockets
创建一个新的 server-group 并将此主机移动到这个新的 server-group.
问题?我的主机使用配置文件 ha
,但使用 full-ha-sockets
而不是 ha-sockets
。我进行了设置以仅使用 ha-sockets
来使用 EJB Remote,当我尝试在 EJB 中为 远程出站连接 调用远程方法时遇到同样的错误:
There are no known registration points which can provide this capability
我以为我的主机正在使用 ha-sockets
。所以,我让主机使用 ha-sockets
并且错误消失了。我浪费了很多时间才发现这个错误。