Maven JBoss7部署:ConnectException

问题描述 投票:0回答:1

JBoss 7.1.5已启动并正在运行。我可以通过http://127.0.0.1:9990/console

访问管理

我创建了以下要部署的Maven配置文件:

<profile>
    <id>localDeploy</id>
    <build>
        <plugins>
            <plugin>
                <groupId>org.jboss.as.plugins</groupId>
                <artifactId>jboss-as-maven-plugin</artifactId>
                <version>7.9.Final</version>
                <goals>
                    <goal>deploy</goal>
                </goals>
                <configuration>
                    <hostname>127.0.0.1</hostname>
                    <port>9990</port>
                    <username>username</username>
                    <password>pw</password>
                </configuration>
            </plugin>
        </plugins>
    </build>
</profile>

无论我如何尝试,在运行mvn jboss-as:deploy -P localDeploy时,它总是失败并带有

[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.9.Final:deploy (default- cli) on project [project-name]: Could not execute goal deploy on [name].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 remote://127.0.0.1:9990. The connection timed out
maven jboss7.x remote-server
1个回答
0
投票

[netstat -ano | grep "9999"显示服务器未在监听。

缺少standalone.xml中的management-interfaces部分

<native-interface security-realm="ManagementRealm">
    <socket-binding native="management-native"/>
</native-interface>

向@Illya Kysil提出建议,将我指向正确的方向。

© www.soinside.com 2019 - 2024. All rights reserved.