【问题标题】:A web application running in JBoss EAP through Eclipse cannot be accessed from another computer in the same network无法从同一网络中的另一台计算机访问通过 Eclipse 在 JBoss EAP 中运行的 Web 应用程序
【发布时间】:2015-01-23 00:48:52
【问题描述】:

我有一个 Web 应用程序 (JSF2) 通过我的机器 (Computer1) 中的 Eclipse 在 JBoss EAP 中运行。 Computer1 是一台 Windows7 机器。 我可以在 Computer1 中使用 Eclipse 内部浏览器和 Chrome 运行该应用程序。 但是当我尝试从同一网络中的另一台计算机(Computer2)访问应用程序时,我收到 ERR_CONNECTION_REFUSED 错误消息。

我使用 netstat 看到 Computer1 正在侦听端口 8080,而 Computer1 没有防火墙。

我可以从 Computer2 ping Computer1。

任何帮助都会很棒!

【问题讨论】:

    标签: eclipse windows jakarta-ee jboss


    【解决方案1】:

    默认情况下,JBoss 只监听 local 接口。快速搜索显示您必须在配置中添加一个接口,例如:

    <interfaces>  
        ...
        <interface name="any">  
            <any-address/>  
        </interface>  
    </interfaces>
    

    然后配置socket-binding-group来使用它:

    <socket-binding-group name="standard-sockets" default-interface="any">
    

    参考:https://developer.jboss.org/thread/168789

    【讨论】:

      猜你喜欢
      • 2018-04-02
      • 2020-08-24
      • 1970-01-01
      • 1970-01-01
      • 2018-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-29
      相关资源
      最近更新 更多