JBoss EAP已启动并正在运行,但无法通过Web浏览器访问

时间:2018-10-04 06:42:29

标签: jboss jboss6.x jboss-eap-7

我正在localhost上运行一个已部署的应用程序,并从浏览器访问它,但是尽管8080正在侦听,却无法在浏览器上访问它。

有时会显示“拒绝连接”或“找不到网页”

这是我的 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>

1 个答案:

答案 0 :(得分:0)

正如您所提到的,有时您会收到“拒绝连接”或“找不到网页”的信息,您能否澄清它在大多数情况下都有效,有时还是每次都会出现此错误?

能否在您的服务器日志中检查8080端口正在侦听您配置的IP?例如:

  
    

INFO [org.wildfly.extension.undertow](MSC服务线程1-1)WFLYUT0006:Undertow HTTP侦听器http侦听127.0.0.1:8080