【问题标题】:Deploy on Widlfy from Jenkins with "Connection timed out" error从 Jenkins 在 Widlfy 上部署,出现“连接超时”错误
【发布时间】:2014-07-24 13:56:31
【问题描述】:

我可以毫无问题地在 Wildfly 本地部署。但是,如果我尝试从 Jenkins 远程部署,则会出现以下异常:

[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:undeploy (default-cli) on project profiler-domain: Could not execute goal undeploy on `/opt/ci_cq/workspace/myapppackage/target/myapp.ear. Reason: I/O Error could not execute operation '{`
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to http-remoting://myipOfRemotingServer:9990. The connection timed out
[ERROR] -> [Help 1]

wildfly上的9990端口是这样配置的:

<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:9993}"/>
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/
>

我在 pom.xml 中配置了 wildfly 插件,如下所示:

<plugin>
         <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.0.2.Final</version>
                <configuration>
                    <skip>false</skip>
                    <hostname>${hostname}</hostname>
                    <port>${port}</port>
                    <username>${username}</username>
                    <password>${password}</password>
                </configuration>
            </plugin>

这里有什么问题?

谢谢!

【问题讨论】:

  • 管理界面的&lt;inet-address/&gt; 值是多少?它是可访问的 IP 地址吗?防火墙是否对端口 9990 开放?
  • @James R.Perkins 嘿,谢谢!你的建议对我有帮助!我不允许从除 Localhost 之外的其他 IP 访问:)

标签: maven jenkins wildfly


【解决方案1】:

正如 James R. Perkins 所说,我不允许除 localhost 之外的任何其他地址访问管理端口。改了之后就可以了!

【讨论】:

    猜你喜欢
    • 2018-04-28
    • 1970-01-01
    • 2023-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-30
    • 2011-09-10
    相关资源
    最近更新 更多