【发布时间】: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>
这里有什么问题?
谢谢!
【问题讨论】:
-
管理界面的
<inet-address/>值是多少?它是可访问的 IP 地址吗?防火墙是否对端口 9990 开放? -
@James R.Perkins 嘿,谢谢!你的建议对我有帮助!我不允许从除 Localhost 之外的其他 IP 访问:)