JBoss EAP 已启动且 运行 但无法通过网络浏览器访问

JBoss EAP is up and running but isn't accessible through web browser

我是 运行 在本地主机上部署的应用程序并从浏览器访问它,但无法在浏览器上访问它,尽管 8080 正在侦听。

有时会显示 "Refused to connect" 或 "Webpages not found"

这是我的standalone.xml

<interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:0.0.0.0}"/>
        </interface>
        <interface name="unsecure">
            <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
        </interface>
    </interfaces>

    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
        <socket-binding name="ajp" port="8009"/>
        <socket-binding name="http" port="8080"/>
        <socket-binding name="https" port="8443"/>
        <socket-binding name="jacorb" interface="unsecure" port="3528"/>
        <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
        <socket-binding name="messaging" port="5445"/>
        <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>
        <socket-binding name="messaging-throughput" port="5455"/>
        <socket-binding name="remoting" port="4447"/>
        <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="localhost" port="25"/>
        </outbound-socket-binding>
        <outbound-socket-binding name="remote-ejb-connection1">
            <remote-destination host="localhost" port="4689"/>
        </outbound-socket-binding>
    </socket-binding-group>

    <deployments>
        <deployment name="ace-ear-1.0.11-SNAPSHOT.ear" runtime-name="ace-ear-1.0.11-SNAPSHOT.ear">
            <content sha1="213bc2a0282e8488d75711d9c49fbdb2c607e84b"/>
        </deployment>
        <deployment name="ace-admin-ear-1.0.11-SNAPSHOT-LOCAL.ear" runtime-name="ace-admin-ear-1.0.11-SNAPSHOT-LOCAL.ear">
            <content sha1="d609bf2cc5284b06229579c64eed2570ebc3b7ca"/>
        </deployment>
    </deployments>

正如您提到的,有时您会收到 "Refused to connect" 或 "Webpages not found",您能否说明它是否在大多数时候都有效,有时您还是每次都会收到此错误?

你能检查一下你的服务器日志 8080 端口正在监听你配置的 IP 吗?例如:

INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener http listening on 127.0.0.1:8080