使用maven插件在Jboss EAP 6.4上部署时连接超时

时间:2017-01-18 09:26:51

标签: maven jboss wildfly web-deployment maven-plugin

我正在使用Jboss EAP 6.4,我想使用maven jboss插件在Jboss上部署。
但是我收到了这个错误

Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.6.Final:undeploy (default-cli) on project MyProject: Could not execute goal undeploy on E:\Work\trunk\MyProject\target\MyProject.war. 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 remote://127.0.0.1:9990. The connection timed out

这是我的配置

<plugin>
    <groupId>org.jboss.as.plugins</groupId>
    <artifactId>jboss-as-maven-plugin</artifactId>

    <configuration>
            <force>true</force>
            <hostname>127.0.0.1/hostname>
            <username>admin</username>
            <password>admin</password>
            <port>9990</port>
            <fileNames>
                <fileName>target/MyProject.war</fileName>
            </fileNames>
    </configuration>
</plugin>

我可以使用密码admin和admin(http://127.0.0.1:9990/console

在admin jboss控制台登录

1 个答案:

答案 0 :(得分:1)

在JBoss EAP 6.4上,默认的本机管理端口为9999。 Web控制台使用端口9990,因为它是http管理端口。

也没有fileNames配置属性。除usernamepassword之外的其他属性都使用默认值,因此不需要它们。

如果您要部署到localhost,通常也不需要usernamepassword。客户端应在本地进行身份验证。当然,这取决于服务器的配置方式。

相关问题