0

我正在将我的 jboss eap 6 迁移到 wildfly 18,因为我们正在将我们的应用程序从 java 6 移动到 java 8 。我是wildfly 18的新手,在启动服务器时我遇到了错误-

09:22:59,671 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/https-listener=https' are not available:
    org.wildfly.network.socket-binding.https; Possible registration points for this capability: 
        /socket-binding-group=*/socket-binding=*
09:22:59,672 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/http-listener=http' are not available:
    org.wildfly.network.socket-binding.https; Possible registration points for this capability: 
        /socket-binding-group=*/socket-binding=*
09:22:59,678 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.**
09:22:59,698 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 18.0.0.Final (WildFly Core 10.0.0.Final) stopped in 13ms

我在standalone.xml 文件和standalone-ha.xml 中更改了socket bindinfs在两个文件中添加了Socket binding 更改-

当我从以前的 jboss eap 6 文件中复制所有这些套接字时。我能解释一下为什么需要这些不同的 2 个套接字绑定并且在 jboss 中也可以使用吗?

它在寻找什么能力?我需要添加一些外部元素吗?

需要对此提出建议..我是否在standalone.xml 文件中遗漏了某些内容?或打包在模块文件夹中?我很困惑,需要尽快解决这个问题.. 提前谢谢你!

4

2 回答 2

0

对于此错误 - https ,standalone-ha.xml 中缺少管理 https 端口。我们必须确保它应该存在于独立和独立 ha xml 文件中。

于 2020-07-16T17:06:27.863 回答
0

正如@Shrishti Jain 提到的,http 的套接字绑定不会出现在standalone.xml 和standalone-ha.xml 中,这可能是错误的一个可能原因。

上述错误还有另一种可能。

由于控制台错误 log( '/subsystem=undertow/server=default-server/http-listener=http' are not available) 清楚地提示,对于具有服务器名称的服务器的配置下http-listener的侦听器名称不可用或配置不正确。您必须检查的部分如下所述httpsubsystemundertow"default-server"

<!-- subsystem section for undertow server(subsystem=undertow/server)  -->
   <subsystem xmlns="urn:jboss:domain:undertow:3.1">
            <buffer-cache name="default"/>
<!-- server=default-server -->
            <server name="default-server">
<!-- http-listener=http -->
                <http-listener name="http" socket-binding="http-new" max-post-size="6442450944" redirect-socket="https" enable-http2="true"/>
                <https-listener name="https" socket-binding="https" max-post-size="6442450944" security-realm="SSLRealm" enable-http2="true"/>
                 ....
        </subsystem>

在上面的代码片段中,有"http-new"可能没有正确配置的套接字绑定。在上述情况下,socket-bindingofhttp-new不存在于 <socket-binding-group>

    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
            ....
        <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
        <socket-binding name="http" port="${jboss.http.port:8080}"/>
        <socket-binding name="https" port="${jboss.https.port:8443}"/>
    </socket-binding-group>

注意: 导致监听器的套接字绑定配置的问题应该存在于standalone.xml 和standalone-ha.xml 文件中

于 2021-06-08T19:49:23.860 回答